基本功能

Math.round(x) 将数字舍入为最接近的整数。 Math.floor(x) 将数字向下舍入到最接近的整数。 Math.ceil(x) 将数字向上舍入到最接近的整数。 Math.abs(x) 获取数字的绝对(正)值。 Math.min(x, y, ...) 从数字列表中找出最小值。 Math.max(x, y, ...) 从数字列表中找出最大值。

posted @ 2023-11-06 18:30  江月年年何相似  阅读(65)  评论(0)    收藏  举报