| 函数 | 意义 |
|---|---|
| abs(n) | 绝对值,浮点/整数 |
| float fmod(float,float) | 浮点数整除取余 |
| hypot(float,float) | 计算直角三角形斜边 |
| bool is_nan(expr) | 判断数值是否合法 |
| max( arg1,arg2, ...) | 返回最大值 |
| min( arg1,arg2, ...) | 返回最小值 |
| float pi() | 返回圆周率值 |
| pow(x,y) | 返回 x 的 y 次方值 |
| float ceil(float) | 不小于 float 的整数 |
| float floor(float) | 不大小 float 的整数 |
| float round(float,int) | 四舍五入 |
| sqrt(float) | 平方根 |
| int getrandmax() | 显示随机数最大的可能值 |
| mt_getrandmax() | |
| int rand([min,max]) | 随机数 |
| mt_rand([min,max]) | |
| srand(int) | 随机数种子 |
| mt_srand(int) |
| exp(float) | e 的指数 |
| expm1(float) | exp(float)-1 |
| log(float) | 自然对数 |
| log1p(float) | log(1+float) |
| log10(float) | 以 10 为底的对数值 |
| string base_convert(str,from,to) | 转换数字进制 |
| string decbin(int) | 整数转二进制串 |
| string decoct(int) | 整数转八进制串 |
| string dechex(int) | 整数转十六进制串 |
| int bindec(str) | 二进制串转整数 |
| int octdec(str) | 八进制串转整数 |
| int hexdec(str) | 十六进制转整数 |
| deg2rad(float) | 角度转弧度 |
| rad2deg(float) | 弧度转角度 |
| sin(float) | 正弦 |
| sinh(float) | 双曲正弦 |
| cos(float) | 余弦 |
| cosh(float) | 双曲余弦 |
| ran(float) | 正切 |
| ranh(float) | 双曲正切 |
| asin(float) | 反正弦 |
| asinh(float) | 反双曲正弦 |
| acos(float) | 反余弦 |
| acosh(float) | 反双曲余弦 |
| atan(float) | 反正切 |
| atanh(float) | 反双曲正切 |