# PI

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: February 24, 2023

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

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