会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
awake-insist
CnBlogs
Home
New Post
Contact
Admin
Subscription
jquery 四舍五入
alert(Math.ceil(10/3));
//4
Math.ceil()用作向上取整。
alert(Math.floor(10/3));
//3
Math.floor()用作向下取整
alert(Math.round(10/3));
//3
我们数学中常用到的四舍五入取整。
posted @
2016-04-21 16:35
awake-insist
Views(
569
) Comments(
0
)
收藏
举报
刷新页面
返回顶部
公告