Copy as Markdown[Open in ChatGPT](https://chatgpt.com/?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Fnumber%2Fpi.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)[Open in Claude](https://claude.ai/new?q=Read%20https%3A%2F%2Fcoralogix.com%2Fdocs%2Fdataprime%2Flanguage-reference%2Ffunctions-reference%2Fnumber%2Fpi.md%20and%20help%20me%20with%20my%20question%20about%20this%20Coralogix%20documentation%20page.)

# `pi`

## Description

Returns the mathematical constant π (pi), limited to 15 decimal places.

## Syntax

```
pi(): number
```

## Example

**Use case: Compute the area of a circle**

Use π with the formula *π × r²* to calculate the area of a circle given a radius in meters.

### Example data

```
{

    "distance_m": 10

}
```

### Example query

```
create area from (pi() * power(distance_m, 2))
```

### Example output

```
{

    "distance_m": 10,

    "area": 314.1592653589793

}
```
