"What's new in Python 2.7" makes a confusing statement about string/float conversions.
I found this phrase in the section http://docs.python.org/whatsnew/2.7.html#python-3-1-features Float-to-string and string-to-float conversions now round their results more correctly, and repr() of a floating-point number x returns a result that’s guaranteed to round back to the same number when converted back to a string. I think this should say "...when converted back to a float." Thanks, Paul Berry
Am 07.07.2010 20:37, schrieb Paul Berry:
I found this phrase in the section http://docs.python.org/whatsnew/2.7.html#python-3-1-features
Float-to-string and string-to-float conversions now round their results more correctly, and repr() of a floating-point number x returns a result that’s guaranteed to round back to the same number when converted back to a string.
I think this should say "...when converted back to a float."
Hi Paul, thanks for the report, this is now fixed and will be online shortly. regards, Georg
participants (2)
-
Georg Brandl -
Paul Berry