摘要: Math.ceil、Math.floor、Math.round之间用法和区别 一、描述 Math.ceil():向上取整,即它总是将数值向上舍入为最接近的整数;Math.floor():向下取整,即它总是将数值向下舍入为最接近的整数;Math.round():四舍五入,即它总是将数值四舍五入为最接近 阅读全文
posted @ 2020-09-04 21:54 琴时 阅读(1171) 评论(0) 推荐(0) 编辑