//取整,返回小于目标函数的最大整数(天花板)
Math.floor(-2.3)
//取整,返回小于目标函数最小整数(地板)
Math.ceil()
//四舍五入取整
Math.round()
//平方根
Math.sqrt()
//立方根
Math.cbrt()
//乘方,3的平方
Math.pow(3,2);
//自然对数
Math.log();
//绝对值
Math.abs();
//最大值
Math.max(2.3,4.5);
//最小值
Math.min(2,3);
//返回一个伪随机数
Math.random();