From: Martin DeMello Date: 2009-04-27T01:56:05+09:00 Subject: [ruby-core:23319] Re: [Feature #1408] 0.1.to_r not equal to (1/10) On Sun, Apr 26, 2009 at 2:51 PM, Heesob Park wrote: > > $ ruby -e 'p 0.1.to_r' > (3602879701896397/36028797018963968) > > whereas > > $ ruby -e 'p "0.1".to_r' > (1/10) What, in theory, could be done about this? By the time to_r is invoked, 0.1 is already a binary float, with the implicit rounding off. martin