js中的Math.ceil() 、Math.floor() 、Math.round() 的意思

来源:互联网 发布:创作小说的软件 编辑:程序博客网 时间:2024/05/01 02:04

1. Math.ceil()用作向上取整。

2. Math.floor()用作向下取整。

3. Math.round() 我们数学中常用到的四舍五入取整。

0 0
原创粉丝点击