[issue17259] locale.format() rounding is not reliable for floats

Eric V. Smith report at bugs.python.org
Wed Feb 20 23:40:22 CET 2013


Eric V. Smith added the comment:

Mark is the ultimate authority here, but my recollection is (and a quick scan of the code shows) that half to even rounding is used in all of our float to string conversions. So that includes %f and float.__format__, among others.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17259>
_______________________________________


More information about the Python-bugs-list mailing list