PostgreSQL pi() Function
The PostgreSQL pi()
function returns an approximation of pi to 15 decimal places.
pi()
Syntax
This is the syntax of the PostgreSQL pi()
function:
pi() -> double precision
Parameters
The PostgreSQL pi()
function does not require any parameters.
Return value
The PostgreSQL pi()
function returns an approximation of pi to 15 decimal places.
pi()
Examples
SELECT pi();
pi
-------------------
3.141592653589793