Updated on 2026-11-06 GMT+08:00

pi

The pi function is used to return the value of π (pi).

Syntax

pi() 

Return Values

Returns a value of type DOUBLE.

Example Code

Returns 3.141592653589793.

select pi();