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;