sqrt(x,prec)
Instance Public methods
Computes the square root of x to the specified number of digits of precision.
BigDecimal.new('2').sqrt(16).to_s
1 | -> "0.14142135623730950488016887242096975E1" |
Computes the square root of x to the specified number of digits of precision.
BigDecimal.new('2').sqrt(16).to_s
1 | -> "0.14142135623730950488016887242096975E1" |
Designed by : w10schools
service@w10schools.com
Please login to continue.