Math类简介

Math  abs max min

分别是绝对值 最大值,最小值


round 四舍五入

ceil 


ceil(32.6)  33.0

ceil(32.2) 33.0 


返回大于该数值的较大的整数


与之相对的就是floor(32.4)--->32.0   floor(-32.4)--->-33.0  取小于该数值的整数







原文地址:https://www.cnblogs.com/mrcharles/p/11879982.html