Math
//绝对值
Math.abs(123);
//向上取整
Math.ceil(1.1);
//向下取整
Math.floor(2.3);
//四舍五入
Math.round(3.45);
//最大最小值
Math.max(100,2);
Math.min(3,1000); //绝对值
Math.abs(123);
//向上取整
Math.ceil(1.1);
//向下取整
Math.floor(2.3);
//四舍五入
Math.round(3.45);
//最大最小值
Math.max(100,2);
Math.min(3,1000);