http://www.qpshs.sh.cn/Flash/Flash/html/30_asd_07_m.html
语法:
Math.round(x);
参数:
x 为一数值。
解释:
方法。返回对参数x四舍五入后所得的整数近似值。
math.round(-4.4)=-4;
math.round(-4.5)=-4;
math.round(4.4)=4;
math.round(4.5)=5;
我的理解:四舍五入,如果是负数的情况下,也是入的,这不,-4比-4.5大,因为入了嘛~哈哈哈