[issue10101] a bug in built-in function round() ?

Skip Montanaro report at bugs.python.org
Thu Oct 14 19:03:29 CEST 2010


Skip Montanaro <skip at pobox.com> added the comment:

Retro> I didn't thought about the fact that binary floating point is so
    Retro> imprecise and can cause the round() to "error" in some
    Retro> situations.

Details on the limitations of floating point arithmetic are here:

    http://docs.python.org/tutorial/floatingpoint.html

Skip

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10101>
_______________________________________


More information about the Python-bugs-list mailing list