摘要: 1. 四舍五入 Math.floor:对数进行下舍入。 Math.ceil:对数进行上舍入。Math.ceil(0.60)==1 ;Math.ceil(0.40)==1;Math.ceil(5.1)==6;Math.ceil(-5.1) 5; NumberObject.toFixed(num):方法 阅读全文
posted @ 2018-06-29 09:15 xubenhua 阅读(72) 评论(0) 推荐(0) 编辑