Tim Peters added the comment:

Nice example!  Yes, the round() implementation is numerically naive, in
this particular case ignoring that x+0.5 isn't necessarily representable
(it multiplies the input by 10.0, adds 0.5, takes the floor, then
divides by 10.0, and in this specific case adding 0.5 loses information
to rounding:

>>> 5629499534213125 + 0.5
5629499534213126.0

).

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1694>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to