For anyone wondering, the highest precision you can get for pi() or M_PI is 20 places after the decimal point, or 3.14159265358979323846.
![]() | pi说明float pi ( void )返回圆周率的近似值。返回值的 float 精度是由 php.ini 中的 precision 指令确定。默认值是 14。你也可以使用 M_PI 常量,该常量产生与 pi() 完全相同的结果。
![]()
Keamos at gmail
14-Jan-2006 01:31
For anyone wondering, the highest precision you can get for pi() or M_PI is 20 places after the decimal point, or 3.14159265358979323846.
davidduke at hotmail dot com
28-Mar-2004 10:18
Pi is often usefull in con/sin/tan functions..
| ![]() | |