Menu
Amazon Redshift
Database Developer Guide (API Version 2012-12-01)

PI Function

The PI function returns the value of PI to 14 decimal places.

Syntax

Copy
PI()

Return Type

PI returns a DOUBLE PRECISION number.

Examples

Return the value of pi:

Copy
select pi(); pi ------------------ 3.14159265358979 (1 row)

On this page: