会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
弋儿
博客园
首页
管理
2017年12月19日
取模 和 取余
摘要: Math.ceil() 向上取整,即向 正无穷 取整 -3.4 -3 3.4 4 Math.floor() 向下取整,即向 负无穷 取整 -3.6 -4 3.6 3 Math.round() 四舍五入,即向 0 取整 -3.4 -3 3.6 4 取模 mod(x,y) = x - y*floor(x
阅读全文
posted @ 2017-12-19 11:04 弋儿
阅读(1507)
评论(0)
推荐(1)
编辑
公告