> ## Documentation Index
> Fetch the complete documentation index at: https://docs.firebolt.io/llms.txt
> Use this file to discover all available pages before exploring further.

> Reference material for PI function

# PI

Returns π as a `DOUBLE PRECISION` value.

## Syntax

```sql theme={"theme":{"light":"css-variables","dark":"css-variables"}}
PI() 
```

## Return Type

`PI` returns a value of type `DOUBLE PRECISION`.

## Example

The following example gets the value of pi:

<div className="query-window">
  ```
  SELECT pi() as result;
  ```

  | result <span>double</span> |
  | :------------------------- |
  | 3.141592653589793          |

  <p><span>Rows: 1</span><span>Execution time: 5.67ms</span></p>
</div>
