---
title: pi function
description: Learn the syntax of the pi function of the SQL language in Databricks SQL and Databricks Runtime.
canonical_url: https://docs.databricks.com/aws/en/sql/language-manual/functions/pi
---

# `pi` function

**Applies to:** ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks SQL ![check marked yes](https://docs.databricks.com/aws/en/images/icons/check.png) Databricks Runtime

Returns pi.

## Syntax

```
pi()
```

## Arguments

The function takes no argument.

## Returns

A `DOUBLE`.

## Examples

```sql
> SELECT pi();
 3.141592653589793
```

## Related functions

* [`e` function](https://docs.databricks.com/aws/en/sql/language-manual/functions/e.md)
