From: Gary Wright Date: 2011-09-13T10:09:57+09:00 Subject: [ruby-core:39496] Re: [Ruby 1.9 - Bug #5309][Open] 0.6.to_r != "0.6".to_r 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