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 Spencer Brown, adam.ulrich, steven.daprano
Date 2022-01-22.03:29:09
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642822149.82.0.31984117021.issue46467@roundup.psfhosted.org>
In-reply-to
Content
As documented, this is not a bug.

"if two multiples are equally close, rounding is done toward the even choice"

https://docs.python.org/3/library/functions.html#round

This is also called "Banker's Rounding" or "Round half to even" and for rounding many values, it minimizes the expected total rounding error.

https://en.wikipedia.org/wiki/Rounding#Round_half_to_even
History
Date User Action Args
2022-01-22 03:29:09steven.dapranosetrecipients: + steven.daprano, Spencer Brown, adam.ulrich
2022-01-22 03:29:09steven.dapranosetmessageid: <1642822149.82.0.31984117021.issue46467@roundup.psfhosted.org>
2022-01-22 03:29:09steven.dapranolinkissue46467 messages
2022-01-22 03:29:09steven.dapranocreate