摘要: floor向下取整:Math.floor(0.20); // 0Math.floor(0.90); // 0Math.floor(-0.90); // -1Math.floor(-0.20); // -1round四舍五入Math.round(0.2) // 0Math.round(0.9) // 1Math.round(-0.9) // -1Math.round(-0.2) // 0ceil向上取整Math.ceil(0.2) // 1Math.ceil(0.9) // 1Math.ceil(-0.9) // 0Math.ceil(-0.2) // 0 阅读全文
posted @ 2012-03-28 17:21 穆乙 阅读(81471) 评论(0) 推荐(2)