[issue7628] round() doesn't work correctly in 3.1.1
Tim Peters
report at bugs.python.org
Mon Jan 4 03:58:17 CET 2010
Tim Peters <tim.peters at gmail.com> added the comment:
Note that round() is implemented much more carefully in Python 3.x than in Python 2.x, and 120 is actually the correct result under nearest/even rounding (125 is exactly halfway between representable values when rounded to the closest 10, and nearest/even rounding resolves the ambiguity by picking the closest value whose last relevant digit is even).
----------
nosy: +tim_one
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue7628>
_______________________________________
More information about the Python-bugs-list
mailing list