[Python-ideas] Python Numbers as Human Concept Decimal System
Steven D'Aprano
steve at pearwood.info
Fri Mar 7 11:39:56 CET 2014
On Fri, Mar 07, 2014 at 11:38:34AM +1100, Chris Angelico wrote:
> Hmm. Is the rounding done by float.__str__() an attractive nuisance?
It's not *rounding* precisely. Starting in Python 3.1, the float
__repr__ will display the shortest decimal string that doesn't change
the float's value.
Reading the issue tracker history for this change is informative:
http://bugs.python.org/issue1580
To the guys who worked on that, I take my hat off to you all.
--
Steven
More information about the Python-ideas
mailing list