pi

Gets the mathematical constant p, accurate to 15 digits.
The number 3.14159265358979.

pi() → returns Numeric

Examples sample code invoking the pi function


pi to 11 digits, to display all 15 digits use numberFormat( pi() )

pi()

Expected Result: 3.14159265359


Fork me on GitHub