会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ITCHN
博客园
首页
新随笔
联系
订阅
管理
2014年7月16日
Math.round()、Math.ceil()、Math.floor()与Math.random()的区别?
摘要: Math.round(x) 四舍五入 加上0.5向下取整 Math.round(1.5) 2 Math.round(-11.5) -11 Math.round(-11.2) -10Math.ceil(x) 不小于x的最小整数 Math.ceil(1.5) 2 Math.ceil...
阅读全文
posted @ 2014-07-16 00:43 ITCHN
阅读(1918)
评论(1)
推荐(0)
公告