[Python-3000] Reconsider repr(0.1) == '0.10000000000000001'
"Martin v. Löwis"
martin at v.loewis.de
Sun Dec 9 11:23:11 CET 2007
> I would like to re-raise the issue of float repr() -- making repr(1.1)
> == '1.1' instead of '1.1000000000000001'.
Can you propose an algorithm that meets your needs, and still has the
property of unambiguously identifying the true floating point number?
It's (perhaps) easy to request this, but much more difficult to
implement it.
Regards,
Martin
More information about the Python-3000
mailing list