[issue4707] round(25, 1) should return an integer, not a float

Guido van Rossum report at bugs.python.org
Wed Jan 28 05:26:24 CET 2009


Guido van Rossum <guido at python.org> added the comment:

I'm sorry, but I don't see a significant difference between $10 and
$10.00.  If you want to display a certain number of digits, use "%.2f" %
x.  And trust me, I'm not doing this for Fortran's sake.

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


More information about the Python-bugs-list mailing list