[issue1580] Use shorter float repr when possible
Guido van Rossum
report at bugs.python.org
Fri Jul 4 06:58:41 CEST 2008
Guido van Rossum <guido at python.org> added the comment:
That is truly maddening! :-(
I guess Noam's proposal to return str(x) if float(str(x)) == x makes
more sense then. I don't really care as much about 1.234567890123 vs.
1.2345678901229999 as I care about 1.2345 vs. 1.2344999999999999.
(This comment is supposed to *precede* the patch.)
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list