Why does str(float) return more digits in Python 3 than Python 2?
Why does str(float) return more digits in Python 3 than Python 2? Question: In Python 2.7, repr of a float returns the nearest decimal number up to 17 digits long; this is precise enough to uniquely identify each possible IEEE floating point value. str of a float worked similarly, except that it limited the result …
Total answers: 1