会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
coael
博客园
首页
新随笔
联系
订阅
管理
2018年2月6日
js中Math.round、parseInt、Math.floor和Math.ceil小数取整总结(转)
摘要: js中Math.round、parseInt、Math.floor和Math.ceil小数取整总结 Math.round、parseInt、Math.floor和Math.ceil 都可以返回一个整数,具体的区别请看下面的总结。 一、Math.round 作用:四舍五入,返回参数+0.5后,向下取整
阅读全文
posted @ 2018-02-06 22:41 coael
阅读(270)
评论(0)
推荐(0)
公告