From: mental@... Date: 2005-11-12T07:09:35+09:00 Subject: Re: Sprintf bug Quoting Rob Rypka : > On 11/11/05, jwesley wrote: > > irb(main):001:0> sprintf("%.1f", 123456789012345678.to_f) > > => "123456789012345680.0" > > irb(main):002:0> sprintf("%.1f", 123456789012345678.to_f).to_i > > => 123456789012345680 > > Two more helpless kittens, struck down before their prime. Four, by my count. > Please think of the kittens. I think God makes exceptions for test cases, though. -mental