java工具种的使用(随笔更新)

java工具类的使用(随笔更新)

java.lang.Math

Math.ceil(1.2)==2 向上取整

Math.floor(1.2)==1向下取整

Math.round(1.2)==1 Math.round(1.5)==2 四舍五入