---
title: pi
description: |
  Returns the mathematical constant π (pi), limited to 15 decimal places.
url: https://coralogix.com/docs/dataprime/language-reference/functions-reference/number/pi/
product: dataengine
feature: DataPrime Language
feature_id: dataprime-language
feature_identifier: dataengine/dataprime-language
last_updated: '2026-10-21'
---

# `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

}
```
