Math.round(11.5)==12
Math.round(-11.5)==-11
round方法返回与参数最接近的长整数,参数加1/2后求其floor.
Math.round(11.5)等於多少? Math.round(-11.5)等於多少?
最新推荐文章于 2024-11-26 09:56:42 发布
Math.round(11.5)==12
Math.round(-11.5)==-11
round方法返回与参数最接近的长整数,参数加1/2后求其floor.