# PI

The `PI()` function returns the value of pi to 7 decimal places.

The full double precision value is used internally if PI() is used as part of an expression.

## Syntax

```sql
PI()

```

## Return Type

`DOUBLE`

## Examples

```sql
SELECT PI();

```

```output

+----------+
| PI()     |
+----------+
| 3.141593 |
+----------+

```

***

Modified at: June 26, 2026

Source: [/cloud/reference/sql-reference/numeric-functions/pi/](https://docs.singlestore.com/cloud/reference/sql-reference/numeric-functions/pi/)

(An index of the documentation is available at /llms.txt)
