Curriculum
Course: SQL
Login

Curriculum

SQL

SQL References

0/80

MySQL Functions

0/139

SQL Server Functions

0/84

SQL Quick Ref

0/1
Text lesson

PI

Example

Retrieve the numerical value of the mathematical constant π (pi).

SELECT PI();

Definition and Usage

The PI() function returns the numerical value of the constant π (pi).

Note: Consider using the DEGREES() and RADIANS() functions for angle conversions.

Syntax

PI()

Technical Details

Works in:

SQL Server (beginning from 2008), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse