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 mark.dickinson
Date 2008-01-19.01:04:24
SpamBayes Score 0.424238
Marked as misclassified No
Message-id <>
The documentation for the builtin round(x, n) says:

"Values are rounded to the closest multiple of 10 to the power minus n."

This isn't always true;  for example:

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)

Here 562949953421312.5 is exactly representable as an IEEE754 double, so the output from the round function should be 
exactly the same as the input.

Assigning this to myself to remind me to try to fix it someday.
Date User Action Args
2008-01-19 01:04:26mark.dickinsonsetspambayes_score: 0.424238 -> 0.424238
recipients: + mark.dickinson
2008-01-19 01:04:26mark.dickinsonsetspambayes_score: 0.424238 -> 0.424238
messageid: <>
2008-01-19 01:04:25mark.dickinsonlinkissue1869 messages
2008-01-19 01:04:24mark.dickinsoncreate