Math是javascript的一个内部对象,该对象的方法主要是一些数学计算方法
floor:下退 Math.floor(12.9999) = 12
ceil:上进 Math.ceil(12.1) = 13;
round: 四舍五入 Math.round(12.5) = 13  Math.round(12.4) = 12

 

相关文章:

  • 2022-02-08
  • 2022-02-16
猜你喜欢
  • 2021-12-25
  • 2021-12-13
  • 2021-08-17
  • 2022-12-23
  • 2022-01-07
  • 2022-03-04
相关资源
相似解决方案