method

PI

v2_2_9 - Show latest stable - Class: BigMath
PI(prec)
public

Computes the value of pi to the specified number of digits of precision, numeric.

BigMath.PI(10).to_s
#=> "0.3141592653589793238462643388813853786957412E1"