From: Roger Pack Date: 2009-05-01T21:12:52+09:00 Subject: [ruby-core:23345] [Feature #1408] 0.1.to_r not equal to (1/10) 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) => # -=r ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1408 ---------------------------------------- http://redmine.ruby-lang.org