From: Tom Link Date: 2009-02-22T03:29:40+09:00 Subject: Re: floating point rounding error? > Is there any BigFloat that avoids this? BigDecimal: require 'bigdecimal' ((BigDecimal("12.99")+BigDecimal("7.0"))*100).ceil => # > ((BigDecimal("12.99")+BigDecimal("7.0"))*100).to_f.ceil => 1999 I think you have to take care though that the BigDecimal isn't converted back into a normal float. > (BigDecimal("12.99")+7.0).class => Float