Math.round(11.5)等於多少? Math.round(-11.5)等於多少

匿名网友 匿名网友 发布于: 2015-12-29 00:00:00
阅读 101 收藏 0 点赞 0 评论 0

Math.round(11.5)==12;Math.round(-11.5)==-11;round方法返回与参数最接近的长整数,参数加1/2后求其floor

评论列表
文章目录