PI() returns the value of |D (pi). : PI : Math Numeric Functions MySQL TUTORIALS


MySQL TUTORIALS » Math Numeric Functions » PI »

 

PI() returns the value of |D (pi).


The default number of decimal places displayed is seven, but MySQL uses the full double-precision value internally.

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

mysql> SELECT PI()+0.000000000000000000;
+---------------------------+
| PI()+0.000000000000000000 |
+---------------------------+
|      3.141592653589793100 |
+---------------------------+
row in set (0.00 sec)

mysql>



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

MySQL TUTORIALS

 Navioo Math Numeric Functions
» PI