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 Retro
Recipients Retro
Date 2010-10-14.12:55:16
SpamBayes Score 0.0012924345
Marked as misclassified No
Message-id <1287060918.13.0.131332755047.issue10101@psf.upfronthosting.co.za>
In-reply-to
Content
>>> round(1.255, 2)
1.25

A bug in Python interpreter?


Shold have been:

>>> round(1.255, 2)
1.26

In mathematics, the .5 part is always rounded up, so in the example the .255 should be rounded to .26 so please fix this bug.
History
Date User Action Args
2010-10-14 12:55:18Retrosetrecipients: + Retro
2010-10-14 12:55:18Retrosetmessageid: <1287060918.13.0.131332755047.issue10101@psf.upfronthosting.co.za>
2010-10-14 12:55:16Retrolinkissue10101 messages
2010-10-14 12:55:16Retrocreate