pi()

Learn how to use the pi() function to return the constant value of Pi.

Returns the constant value of Pi.

Syntax

pi()

Returns

The double value of Pi (3.1415926…)