[issue1869] Builtin round function is sometimes inaccurate for floats
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
(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
(2) round(x, n) still occasionally rounds the wrong way in borderline
cases, even for small n.
resolution: -> fixed
status: open -> closed
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list