From: James Edward Gray II Date: 2005-12-23T13:11:13+09:00 Subject: Re: BigDecimal#sqrt On Dec 22, 2005, at 4:04 PM, James Edward Gray II wrote: > I'm trying to understand the argument to BigDecimal#sqrt. I > figured it was for precision and it does seem to affect it, but I > can't understand the exactly relationship. Can anyone tell me what > the argument controls and how? 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" James Edward Gray II