This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Ultrasick, mark.dickinson
Date 2009-01-31.14:12:36
SpamBayes Score 2.2967522e-06
Marked as misclassified No
Message-id <1233411159.77.0.485887752138.issue5118@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2009-01-31 14:12:39mark.dickinsonsetrecipients: + mark.dickinson, Ultrasick
2009-01-31 14:12:39mark.dickinsonsetmessageid: <1233411159.77.0.485887752138.issue5118@psf.upfronthosting.co.za>
2009-01-31 14:12:37mark.dickinsonlinkissue5118 messages
2009-01-31 14:12:36mark.dickinsoncreate