You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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__ in IronPython\Runtime\Operations\FloatOps.cs.
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
The text was updated successfully, but these errors were encountered: