SQL Server PI() Function

Example

Return the value of PI:

SELECT PI();
Try it Yourself »

Definition and Usage

The PI() function returns the value of PI.

Note: Also look at the DEGREES() and RADIANS() functions.

Syntax

PI()

Technical Details

Works in: SQL Server (starting with 2008), Azure SQL Database, Azure SQL Data Warehouse, Parallel Data Warehouse

Copyright 1999-2023 by Refsnes Data. All Rights Reserved.