Math.round(11.5)==12Math.round(-11.5)==-11
round方法返回与参数最接近的长整数,参数加1/2后求其floor.
上一篇 abstract class和interface有什么区别?
下一篇 如何启动时不需输入用户名与密码?
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号