Dofactory.com
Dofactory.com
Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

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



Last updated on Dec 21, 2023

Earn income with your data and sql skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.