From: mathew
Date: 2005-12-28T13:27:53+09:00
Subject: Re: BigDecimal#sqrt
James Edward Gray II wrote:
> Let me try asking me question a different way... Is this the correct
> way to get a printable sqrt() with 16 digits precision?
>
> >> sprintf "%.16f", BigDecimal.new("66543").sqrt(16)
> => "257.9592991151890260"
Yes.
I've written some documentation for BigDecimal which will hopefully be
checked in to Ruby some time.
mathew
--
My parents went to the lost kingdom of Hyrule
and all I got was this lousy triforce.