﻿---
title: ES|QL PI function
description: 
url: https://www.elastic.co/elastic/docs-builder/docs/2831/reference/query-languages/esql/functions-operators/math-functions/pi
products:
  - Elasticsearch
---

# ES|QL PI function
## Syntax

![Embedded](https://www.elastic.co/elastic/docs-builder/docs/2831/reference/query-languages/esql/images/functions/pi.svg)


## Parameters


## Description

Returns [Pi](https://en.wikipedia.org/wiki/Pi), the ratio of a circle’s circumference to its diameter.

## Supported types


| result |
|--------|
| double |


## Example

```esql
ROW PI()
```


| PI():double       |
|-------------------|
| 3.141592653589793 |