math应用
th.round();向上四舍五入。
Math.ceil();向上取整,有小数就整数部分加1
Math.floor(5/2) ;向下取整
Math.abs();返回绝对值;
Math.max();返回两个以上参数的最大值;
Math.min();返回两个以上参数的最小值;
th.round();向上四舍五入。
Math.ceil();向上取整,有小数就整数部分加1
Math.floor(5/2) ;向下取整
Math.abs();返回绝对值;
Math.max();返回两个以上参数的最大值;
Math.min();返回两个以上参数的最小值;