摘要: 1、Math中四舍五入的方法 Math.ceil(double a)向上舍入,将数值向上舍入为最为接近的整数,返回值是double类型 Math.floor(double a)向下舍入,将数值向下舍入为最为接近的整数,返回值是double类型 Math.round(float a)标准舍入,将数值四 阅读全文
posted @ 2019-08-14 00:11 来自蓝星 阅读(44710) 评论(0) 推荐(1) 编辑