Link Search Menu Expand Document

This documentation is related to an older version of Firebolt. For the most current documentation, see Firebolt documentation.

PI

Calculates π as a REAL value.

Syntax

PI() 

Return Type

DOUBLE PRECISION

Example

This example returns π as a DOUBLE PRECISION value:

SELECT
    PI();

Returns: 3.141592653589793