MySQL PI Function

This MySQL function is useful to return the Pi value, which is 3.141593, and let us see how to find it. Next, how to use this function as an argument of another function with an example? The basic syntax of the MySQL PI is as shown below:

PI()

MySQL PI Function Example

The first statement returns the actual value. In the second MySQL statement, we are adding 10 to the value. Within the third statement, we used this Mathematical method inside COS, SIN, and TAN functions.

SELECT PI();

SELECT PI() + 10 ;

SELECT COS(PI()), SIN(PI()), TAN(PI());
MySQL PI Function Example