Issue #1408 has been updated by Roger Pack.


> -1 that loses data.

True--however the (current) code for String#to_s attempts to determine whether the floating point number "is the equivalent default for the rounded value" (i.e. if it round trips).
Do you think that using a comparisong like this (similar to what Park suggested) would be good enough for deducing the true original value? (I've thought of proposing a similar thing for BigDecimal, 

ex: BigDecimal(0.1) => #<BigDecimal:2d8cec8,'0.1E0',4(8)>


-=r
----------------------------------------
http://redmine.ruby-lang.org/issues/show/1408

----------------------------------------
http://redmine.ruby-lang.org