[issue1580] Use shorter float repr when possible
Noam Raphael
report at bugs.python.org
Tue Mar 3 00:53:39 CET 2009
Noam Raphael <noamraph at gmail.com> added the comment:
Do you mean msg58966?
I'm sorry, I still don't understand what's the problem with returning
f_15(x) if eval(f_15(x)) == x and otherwise returning f_17(x). You said
(msg69232) that you don't care if float(repr(x)) == x isn't
cross-platform. Obviously, the simple method will preserve eval(repr(x))
== x, no matter what rounding bugs are present on the platform.
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1580>
_______________________________________
More information about the Python-bugs-list
mailing list