Retrieve the numerical value of the mathematical constant π (pi).
SELECT PI(); |
The PI() function returns the numerical value of the constant π (pi).
Note: Consider using the DEGREES() and RADIANS() functions for angle conversions.
PI() |
Works in: |
SQL Server (beginning from 2008), Azure SQL Database, Azure SQL Data Warehouse, and Parallel Data Warehouse |