Issue #1336 has been updated by Roger Pack.


I like the recent change.  Now it acts like this:

>> 0.9
=> 0.9
>>  2.1 - 3.0
=> -0.8999999999999999
>> (2.1-3.0) == -0.9
=> false

Is this satisfactory, or would anyone still prefer Float#to_s => rounded, Float#inspect => non rounded (i.e. 0.9.inspect => "0.8999999999")?  Just wondering since I brought up this mess :)
I kind of like the current way.  It hides some complexity while still explaining to end users why equality fails.
Thanks for the update.

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

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