New submission from Retro <vinet...@gmail.com>: >>> round(1.255, 2) 1.25
A bug in Python interpreter? Shold have been: >>> round(1.255, 2) 1.26 In mathematics, the .5 part is always rounded up, so in the example the .255 should be rounded to .26 so please fix this bug. ---------- components: Library (Lib) messages: 118659 nosy: Retro priority: normal severity: normal status: open title: a bug in built-in function round() ? type: behavior versions: Python 2.7, Python 3.1, Python 3.2 _______________________________________ 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