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 Francis.Nimick
Recipients Francis.Nimick
Date 2013-02-20.21:21:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1361395314.25.0.489128727343.issue17259@psf.upfronthosting.co.za>
In-reply-to
Content
Locale.format() doesn't work correctly with floating point numbers.

locale.format('%.0f', 5.5) -> 6
locale.format('%.0f', 6.5) -> 6
locale.format('%.0f', 7.5) -> 8
locale.format('%.0f', 8.5) -> 8

It seems that if the number before the decimal point is even, it rounds down, else it rounds up.
History
Date User Action Args
2013-02-20 21:21:54Francis.Nimicksetrecipients: + Francis.Nimick
2013-02-20 21:21:54Francis.Nimicksetmessageid: <1361395314.25.0.489128727343.issue17259@psf.upfronthosting.co.za>
2013-02-20 21:21:54Francis.Nimicklinkissue17259 messages
2013-02-20 21:21:54Francis.Nimickcreate