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

PI()

Return Type

Double.

Examples

SELECT PI();
+----------+
| PI()     |
+----------+
| 3.141593 |
+----------+

Last modified: February 24, 2023

Was this article helpful?