[issue36082] The built-in round() function giving a wrong output
Rémi Lapeyre
report at bugs.python.org
Fri Feb 22 12:24:47 EST 2019
Rémi Lapeyre <remi.lapeyre at henki.fr> added the comment:
This is called banker rounding and is done on purpose to limit the accumulation of errors when summing a list of rounded integers. You can read https://en.m.wikipedia.org/wiki/Rounding#Round_half_to_even and look at IEEE 754 for more information.
----------
nosy: +remi.lapeyre
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36082>
_______________________________________
More information about the Python-bugs-list
mailing list