PI

Returns π as a DOUBLE PRECISION value.

Syntax

PI() 

Return Type

PI returns a value of type DOUBLE PRECISION.

Example

The following example gets the value of pi:

SELECT pi() as result;

Returns

result (DOUBLE PRECISION)
3.141592653589793