pi
The pi function returns the constant value of Pi.
Syntax
pi()
Results
The double value of Pi (3.1415926…).
Examples
This returns a rounded 3.142:
print pi()The pi function returns the constant value of Pi.
pi()
The double value of Pi (3.1415926…).
This returns a rounded 3.142:
print pi()