method
sqrt
v2_5_5 -
Show latest stable
- Class:
BigMath
sqrt(x, prec)public
Computes the square root of decimal to the specified number of digits of precision, numeric.
BigMath.sqrt(BigDecimal('2'), 16).to_s #=> "0.1414213562373095048801688724e1"