Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

PI (Transact-SQL)

Applies to: 👁 Image
SQL Server 👁 Image
Azure SQL Database 👁 Image
Azure SQL Managed Instance 👁 Image
Azure Synapse Analytics 👁 Image
Analytics Platform System (PDW) 👁 Image
SQL analytics endpoint in Microsoft Fabric 👁 Image
Warehouse in Microsoft Fabric 👁 Image
SQL database in Microsoft Fabric

Returns the constant value of PI.

👁 Image
Transact-SQL syntax conventions

Syntax

PI ( ) 

Return Types

float

Examples

The following example returns the value of PI.

SELECT PI(); 
GO 

Here's the result set.

------------------------ 
3.14159265358979 
 
(1 row(s) affected) 

See Also

Mathematical Functions (Transact-SQL)


Feedback

Was this page helpful?

Additional resources