Skip to main content
Version: Latest-4.1

pi

Returns the value of Pi.

Syntax​

pi()

Parameter​

N/A

Return value​

Returns the value of Pi as a DOUBLE type value.

Examples​

mysql> select pi();
+-------------------+
| pi() |
+-------------------+
| 3.141592653589793 |
+-------------------+
1 row in set (0.00 sec)
Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.