摘要:
Math.ceil(x) -- 返回大于等于数字参数的最小整数(取整函数),对数字进行上舍入Math.floor(x)--返回小于等于数字参数的最大整数,对数字进行下舍入例如:document.write(Math.ceil(5.99));document.write(Math.ceil(-5.99));document.write(Math.ceil(1.01));document.write(Math.ceil(-1.01));输出是:6-52-1 阅读全文
posted @ 2013-10-31 22:38
成风魄郎
阅读(1075)
评论(2)
推荐(0)

浙公网安备 33010602011771号