﻿---
title: ES|QL PI function
description: 
url: https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/144300/reference/query-languages/esql/functions-operators/math-functions/pi
products:
  - Elasticsearch
---

# ES|QL PI function
## Syntax

![Embedded](https://docs-v3-preview.elastic.dev/elastic/elasticsearch/pull/144300/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 |