2012年9月18日 - floor 向下取整 ceil 向上取整 round 则是4舍5入的计算,round方法,它表示“ 四舍五入”,算法为Math.floor(x+0.5),即将原来的数字加上0.5后再向下 ...
hi.baidu.com