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:

Interactive SQL Playground 🔥
SELECT pi() as result;
result
3.141592653589793
Rows: 1 Time: 20.00ms