Share via


PI - Query language in Cosmos DB (in Azure and Fabric)

The PI function returns the constant value of Pi.

Syntax

PI()

Return types

Returns a numeric expression.

Examples

This section contains examples of how to use this query language construct.

Return the constant value of Pi

In this example, the PI function is used to return the constant value of Pi.

SELECT VALUE
  PI()
[
  3.141592653589793
]