Category: Number function
This function returns the value of Pi (π): 3.1415926535897932384626433833…
This function requires no arguments.
Return value type: Number
Pi is an irrational number with no final digit and can be represented by the fraction 22/7 .
pi() //Returns 3.1415926535897932384626433833
pi() * 2 * 3 //Returns 18.85 (Circumference of a circle with a radius of 3.)
pi() * square(3) = 28.27 (Area of a circle with a radius of 3.)