Previous Next JavaScript must be enabled to correctly display this content

## pi function

The `pi` function returns the value of pi, that is, `3.141592653589793`.

Syntax:

    double pi()

Semantics:

- The `pi` function does not expect any input arguments.
- return type: double.

Example 12-86 pi function

    SELECT pi() AS PI FROM Archery

Output:

     +-----------+-------------------+
     | PI        | 3.141592653589793 |
     +-----------+-------------------+