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 steven.daprano
Recipients marco_ocram, mark.dickinson, rhettinger, ronaldoussoren, steven.daprano, stutzbach, veky
Date 2020-08-22.04:45:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1598071544.2.0.699850394141.issue41598@roundup.psfhosted.org>
In-reply-to
Content
Vedran: you are quoting von Neumann out of context, he was talking about generating random numbers, not rounding, and in the seven decades since he made his famous witticism, we of course know that there is absolutely nothing wrong with generating random numbers via arithmetical methods so long as you do it correctly :-)

I have read your comments in the linked Stackoverflow answer, and I don't agree that we shouldn't be rounding binary floats. I do, however, agree with your comment here that we ought to add a rounding mode to the built-in round function, that would be a much better idea than adding a multitude of individual rounding functions.

I proposed this idea some time ago:

https://mail.python.org/archives/list/python-dev@python.org/message/DVS3XSAKW37NDD37BE3IOCKRBRV3Y5A6/
History
Date User Action Args
2020-08-22 04:45:44steven.dapranosetrecipients: + steven.daprano, rhettinger, ronaldoussoren, mark.dickinson, stutzbach, veky, marco_ocram
2020-08-22 04:45:44steven.dapranosetmessageid: <1598071544.2.0.699850394141.issue41598@roundup.psfhosted.org>
2020-08-22 04:45:44steven.dapranolinkissue41598 messages
2020-08-22 04:45:43steven.dapranocreate