Re:0.30000000000000004
by evanpw on Friday November 13, 2015 @08:05AM
(#10559581)
There's some discussion here: https://docs.python.org/3.1/tutorial/floatingpoint.html. Basically: eval(repr(x)) == x is guaranteed, and some attempt is made to give the shortest such string representation for Python 3.1+ (and 2.7?), but it's not guaranteed on all platforms.
[ Parent
| on HN ]
There are no comments on this comment yet.