Mark Dickinson <dicki...@gmail.com> added the comment:

This is not a bug;  it's a consequence of the finite accuracy of floating-
point arithmetic.  If you look at the actual value that's stored for 
'2.545', you'll see that it's actually slightly less than 2.545, so 
rounding it down is the correct thing to do.

>>> 2.545
2.5449999999999999

----------
nosy: +marketdickinson
resolution:  -> invalid

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue5118>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to