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 veky
Recipients marco_ocram, mark.dickinson, rhettinger, ronaldoussoren, stutzbach, veky
Date 2020-08-20.18:38:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1597948695.47.0.21411312994.issue41598@roundup.psfhosted.org>
In-reply-to
Content
ROUND_HALF_UP is not chosen because it's popular, but because it's the best way to compensate for errors in representing decimal numbers by binary numbers.

Thinking that floats are decimal numbers is going to bite you anyway sooner or later. For example, would you expect (with your implementation) rnd(2.8-1.3) == rnd(1.8-1.3) ?
History
Date User Action Args
2020-08-20 18:38:15vekysetrecipients: + veky, rhettinger, ronaldoussoren, mark.dickinson, stutzbach, marco_ocram
2020-08-20 18:38:15vekysetmessageid: <1597948695.47.0.21411312994.issue41598@roundup.psfhosted.org>
2020-08-20 18:38:15vekylinkissue41598 messages
2020-08-20 18:38:15vekycreate