Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 1.31 KB

pi-transact-sql.md

File metadata and controls

57 lines (43 loc) · 1.31 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic f1_keywords helpviewer_keywords dev_langs monikerRange
PI (Transact-SQL)
PI (Transact-SQL)
MikeRayMSFT
mikeray
03/03/2017
sql
t-sql
reference
PI_TSQL
PI
constant value of PI
PI function
TSQL
>= aps-pdw-2016 || = azuresqldb-current || = azure-sqldw-latest || >= sql-server-2016 || >= sql-server-linux-2017 || = azuresqldb-mi-current||=fabric

PI (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw-fabricse-fabricdw]

Returns the constant value of PI.

:::image type="icon" source="../../includes/media/topic-link-icon.svg" border="false"::: Transact-SQL syntax conventions

Syntax

PI ( )  

Return Types

float

Examples

The following example returns the value of PI.

SELECT PI();  
GO  

[!INCLUDEssResult]

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

See Also

Mathematical Functions (Transact-SQL)