Skip to main content
Version: V1.4.0

PI

Declaration​

PI()

Description​

Returns the value of π (pi).

Example​

SELECT PI();
+----------+
| PI() |
+----------+
| 3.141593 |
+----------+
1 row in set (0.000 sec)

SELECT ROUND(2*PI(),2);
+----------------+
| ROUND(2*PI(),2)|
+----------------+
| 6.28 |
+----------------+
1 row in set (0.001 sec)