PHP开发教程

MySQL PI()函数

PI()

这个函数只是简单地返回圆周率的值。MySQL的内部存储双精度圆周率值。

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


Powered by PHP二次开发 ©2008-2017