向上取整:ceil(x),返回不小于x的最小整数; 向下取整:floor(x),返回不大于x的最大整数; 四舍五入:round(x) 截尾取整函数:trunc(x) 转载于:https://www.cnblogs.com/liuzicheng/p/5675987.html