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 tim.peters
Recipients falk_steinhauer, mark.dickinson, tim.peters
Date 2007-12-31.22:56:52
SpamBayes Score 0.45163876
Marked as misclassified No
Message-id <1199141813.19.0.127166448497.issue1694@psf.upfronthosting.co.za>
In-reply-to
Content
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

).
History
Date User Action Args
2008-01-01 14:47:31christian.heimesunlinkissue1694 messages
2007-12-31 22:56:53tim.peterssetspambayes_score: 0.451639 -> 0.45163876
recipients: + tim.peters, mark.dickinson, falk_steinhauer
2007-12-31 22:56:53tim.peterssetspambayes_score: 0.451639 -> 0.451639
messageid: <1199141813.19.0.127166448497.issue1694@psf.upfronthosting.co.za>
2007-12-31 22:56:53tim.peterslinkissue1694 messages
2007-12-31 22:56:52tim.peterscreate