math应用

th.round();向上四舍五入。

  Math.ceil();向上取整,有小数就整数部分加1

  Math.floor(5/2) ;向下取整

  Math.abs();返回绝对值;

  Math.max();返回两个以上参数的最大值;

  Math.min();返回两个以上参数的最小值;

posted @ 2019-04-13 10:47  zsyzsyzsyzsyzsy  阅读(111)  评论(0编辑  收藏  举报