Math.ceil()、Math.floor()和Math.round()

Math.ceil() 对数字执行上舍入;

Math.floor()对数字执行下舍入;

Math.round()对数字四舍五入;

posted @ 2019-07-23 15:24  小小WEB家  阅读(155)  评论(0编辑  收藏  举报