PostgreSQL PI Function

Education is not limited to just classrooms. It can be gained anytime, anywhere... - Ravi Ranjan (M.Tech-NIT)

PostgreSQL PI() function

PI() function

The PostgreSQL pi() function is used to return the constant value of pi.

Syntax :

pi()

PostgreSQL Version : 9.3

Pictorial presentation of PostgreSQL PI() function

Example : PostgreSQL PI() function :

SELECT PI() AS "Value of PI";

Output :

    Value of PI
------------------
 3.14159265358979
(1 row)