From: Brandon Olivares Date: 2009-12-17T05:16:48+09:00 Subject: Re: BigDecimal and BigMath On 2009-12-16, Brian Candler wrote: > Brandon Olivares wrote: >> I am developing an application that requires very large numbers, so >> I am using BigDecimal. > > Floats can handle pretty large numbers, too: > > irb(main):009:0> 2.0 ** 1000 > => 1.07150860718627e+301 > > It's more a question of how much precision you need. Agreed, but these numbers will be used in calculations, so I feel a bit more comfortable with BigDecimal. The precision I need varies. It'll use a lot of trig, and those should be as exact as possible. Brandon > -- > Posted via http://www.ruby-forum.com/.