[issue1694] floating point number round failures under Linux

Mark Dickinson report at bugs.python.org
Mon Dec 31 23:30:54 CET 2007


Mark Dickinson added the comment:

It's worth noting that Python's round function doesn't quite work as advertised, either:

Python 2.6a0 (trunk:59634M, Dec 31 2007, 17:27:56) 
[GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> round(562949953421312.5, 1)
562949953421312.62

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1694>
__________________________________


More information about the Python-bugs-list mailing list