Flowdock
sqrt(x, prec) public

Computes the square root of decimal to the specified number of digits of precision, numeric.

BigMath::sqrt(BigDecimal.new('2'), 16).to_s
#=> "0.14142135623730950488016887242096975E1"
Show source
Register or log in to add new notes.