From: gaurav bagga Date: 2006-12-27T02:39:00+09:00 Subject: Re: Newby - how to round up floating point number? ------=_Part_6492_16770752.1167154737572 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline hi, that was good to know irb(main):001:0> o=10.0000000000000001 => 10.0 irb(main):002:0> o.class => Float irb(main):003:0> 10.0000000000000001.class => Float irb(main):004:0> 10.00000000000000000000000000000000000000000000000001.class => Float irb(main):005:0> 10.00000000000000000000000000000000000000000000000001 => 10.0 irb(main):008:0> 10.6856856856856856856755555555555555555555555555555555555551 => 10.6856856856857 irb(main):009:0> 10.6856856856856156856755555555555555555555555555555555555551 => 10.6856856856856 irb(main):010:0> never thought what happens when floats get this way " 10.00000000000000000000000000000000000000000000000001" regards gaurav ------=_Part_6492_16770752.1167154737572--