On This Page

Home / Search/ Language Reference/ Functions/ Scalar Functions/ Mathematical Functions/pi

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()