Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

MySQL PI() function

PI() function

MySQL PI() returns the value of π(pi).

Syntax:

PI();

Pictorial presentation of MySQL PI() function

pictorial presentation of MySQL PI() function

Example of MySQL PI() function

Code:

SELECT PI();

Explanation:

The above MySQL statement returns the value of PI().

Sample Output:

mysql> SELECT PI();
+----------+
| PI()     |
+----------+
| 3.141593 | 
+----------+
1 row in set (0.00 sec)

All Mathematical Functions

MySQL Mathematical Functions, slide presentation

Previous: OCT()
Next: POW()