- 博客(1)
- 资源 (2)
- 收藏
- 关注
原创 Math 常用的方法
舍掉小数取整:Math.floor(2)=2 舍掉小数取整:Math.floor(2.1)=2 舍掉小数取整:Math.floor(-2.1)=-3 舍掉小数取整:Math.floor(-2.5)=-3 舍掉小数取整:Math.floor(-2.9)=-3 四舍五入取整:Math.rint(2)=2 四舍五入取整:Math.rint(2.1)=2 四舍五入取整:Math.rint(-...
2017-10-01 00:15:25 375
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人