javascript

1、Math.pow(2, 53)     // 2的53次幂

   Math.round(.6)       // 四舍五入

      Math.ceil(.6)          // 向上取整

   Math.floor(.6)         // 向下取整

      Math.abs(-5)          // 求绝对值

      Math.max(x, y, z)   // 返回最大值

      Math.min(x, y, z)   // 返回最小值

      Math.random()      // 生成一个0-1之间的随机数

      Math.PI                 // 圆周率

      Math.E                 // 自然对数的底数

      Math.sqrt(3, 1/3)   // 3的平方根

      Math.exp(3)          // e的3次幂

原文地址:https://www.cnblogs.com/jn1223/p/7445232.html