[issue1694] floating point number round failures under Linux
Tim Peters
report at bugs.python.org
Mon Dec 31 22:35:40 CET 2007
Tim Peters added the comment:
Right, Unix-derived C libraries generally do IEEE-754 "round to
nearest/even" rounding, while Microsoft's do "add a half and chop"
rounding. The Python reference manual says nothing about this, and
neither does the C standard (well, C89 doesn't; unsure about C99).
Python's round() function is independent of the platform C
string<->float conversions, and intentionally does (as documented) "add
a half and chop" rounding.
----------
nosy: +tim_one
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1694>
__________________________________
More information about the Python-bugs-list
mailing list