[New-bugs-announce] [issue5118] '%.2f' % 2.545 doesn't round correctly
Ultrasick
report at bugs.python.org
Sat Jan 31 13:57:51 CET 2009
New submission from Ultrasick <python at ontheserver.de>:
print '%.2f' % 2.544 // returns 2.54
print '%.2f' % 2.545 // returns 2.54 but should return 2.55
print '%.2f' % 2.546 // returns 2.55
----------
messages: 80868
nosy: Ultrasick
severity: normal
status: open
title: '%.2f' % 2.545 doesn't round correctly
type: behavior
versions: Python 2.6
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5118>
_______________________________________
More information about the New-bugs-announce
mailing list