[issue1869] Builtin round function is sometimes inaccurate for floats
Mark Dickinson
report at bugs.python.org
Sat Apr 18 17:06:25 CEST 2009
Mark Dickinson <dickinsm at gmail.com> added the comment:
The two problems mentioned above have now been fixed in r71715.
There are (at least) two remaining problems with the round function in 2.x
that I'm not going to fix, because the added complication doesn't seem
worth it.
(1) round(x, n) doesn't give correct results with large values of n;
but small values (e.g., abs(n) <= 50) should be fine unless x is
huge.
(2) round(x, n) still occasionally rounds the wrong way in borderline
cases, even for small n.
Closing (again!)
----------
resolution: -> fixed
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1869>
_______________________________________
More information about the Python-bugs-list
mailing list