[issue17259] Document round half to even rule for floats

Eric V. Smith report at bugs.python.org
Sat Feb 23 09:58:51 CET 2013


Eric V. Smith added the comment:

I've just looked through the code for 2.7. It uses short float repr for both %-formatting and for float.__format__. So they both use Gay's code, and both should work the same as they do in 3.2+. In all cases, round-half-to-even is used.

It's 2.6 that uses the C library to do float formatting (for both %-formatting and float.__format__).

----------

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


More information about the Python-bugs-list mailing list