>   1.1 - 1.to_f == 0.1
>   >> false
>
> (*rumble*) (*rumble*) Pathetic!

Agree.

At least with 1.9.2 it's possible to tell more easily why this occurs:

>> 1.1-1
=> 0.10000000000000009
>> 0.1
=> 0.1

So some progress has been made.
But I'm with you I'd prefer the default to be rational or bigdecimal, 
and you have to use
1.1f

for floats.  Then you still have speed available, but not lose precision 
in the default case.  But that's just me, and apparently it's too big of 
a change for Matz to swallow I suppose...
-roger-

-- 
Posted via http://www.ruby-forum.com/.