[issue36288] Incorrect answer when using round()

Rémi Lapeyre report at bugs.python.org
Thu Mar 14 10:40:39 EDT 2019


Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:

Thanks for submitting a report MeeranRizvi.

This is the expected behavior, according to the IEEE 754 Python round to nearest even integer. This is called the bankers' rounding and is done (I think) to limitate the propagation of errors.

I suggest we close this as not a bug.

----------
nosy: +remi.lapeyre
type:  -> behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36288>
_______________________________________


More information about the Python-bugs-list mailing list