SQL PI Function

PI returns the constant value of π (3.14159265358979).

PI has a precision of 14 decimals.

π is a constant, therefore PI always returns the same number.

Example

#

The example returns the value of π (3.1415).

SELECT PI() AS PI
Result:  1 record
PI
3.14159265358979

Syntax

Syntax of the PI function.

PI()

You may also like



Guides


vsn 3.1