Open slide opened 7 years ago
From @simplicbe on January 11, 2016 21:53
This should be fixed very easily. Should a test case be added or changed for this?
I thought there was already an issue for this.
From @slozier on January 11, 2016 22:42
I also assumed there would already be an issue for this but I had no luck finding it...
From @slozier on January 11, 2016 21:6
Under CPython (2.7.x),
repr
of a float returns the shortest string representation which round-trips back to the value. With IronPython,repr
returns the representation with 17 digits of precision (which was how CPython did it in 2.6.x).The function of interest is
__repr__
inIronPython\Runtime\Operations\FloatOps.cs
.CPython:
IronPython:
Copied from original issue: IronLanguages/main#1271