Back to Starrocks

pi

docs/en/sql-reference/sql-functions/math-functions/pi.md

4.1.0328 B
Original Source

pi

Returns the value of Pi.

Syntax

Plain
pi()

Parameter

N/A

Return value

Returns the value of Pi as a DOUBLE type value.

Examples

Plain
mysql> select pi();
+-------------------+
| pi()              |
+-------------------+
| 3.141592653589793 |
+-------------------+
1 row in set (0.00 sec)