Skip Montanaro <s...@pobox.com> added the comment: No, just a result of the finite machine representation of floats:
>>> repr(1.255) '1.2549999999999999' so the machine representation of 1.255 is actually less than that value and round() is doing the right thing. ---------- nosy: +skip.montanaro _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10101> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com