On Sep 12, 2011, at 2:06 PM, Brian Ford wrote:
> 0.6.to_r != "0.6".to_r
> 
> Is this a bug?

Probably not because

  0.6.to_r

requires two conversions:

  decimal floating point to binary floating point to rational

while

  "0.6".to_r

only requires one conversion from decimal floating point to rational.

In the first case, the intermediate value is not exactly 3/5 so the
two sequences don't give you the same result.

Gary Wright