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 Ultrasick
Recipients Ultrasick, mark.dickinson
Date 2009-01-31.15:51:42
SpamBayes Score 1.3497714e-07
Marked as misclassified No
Message-id <1233417104.85.0.361841669501.issue5118@psf.upfronthosting.co.za>
In-reply-to
Content
Well that's not what I have learned how rounding works. I think that's
the more common way:

0.4 -> 0
0.5 -> 1
0.6 -> 1

I hope you don't try to spread the misbehavoir of pythons way of rounding

print '%.2f' % 2.545 // returns 2.54

to the built in round() function. So that round() would also return 2.54.

The result of rounding 2.545 is 2.55 no matter how python temporarly
stores "2.545" and independent of how python does the rounding. The
result is 2.55 and not 2.54. If python doesn't deliver "2.55" as the
result of it's rounding algorithm then it's doing it wrong. And if
python does stuff wrong then it has a bug.

in my opinion
History
Date User Action Args
2009-01-31 15:51:44Ultrasicksetrecipients: + Ultrasick, mark.dickinson
2009-01-31 15:51:44Ultrasicksetmessageid: <1233417104.85.0.361841669501.issue5118@psf.upfronthosting.co.za>
2009-01-31 15:51:42Ultrasicklinkissue5118 messages
2009-01-31 15:51:42Ultrasickcreate