PI (Azure Cosmos DB)PI (Azure Cosmos DB)

适用于: SQL API

返回 PI 的常量值。Returns the constant value of PI.

语法Syntax

PI ()  

返回类型Return types

返回数值表达式。Returns a numeric expression.

示例Examples

下面的示例返回 PI 的值。The following example returns the value of PI.

SELECT PI() AS pi 

下面是结果集:Here is the result set.

[{"pi": 3.1415926535897931}]  

后续步骤Next steps