long round = Math.round(-11.5);
System.out.println(round);
-11
JAVA中的Math.round(-11.5)计算结果-11,亲自试过,其他人都说错了
最新推荐文章于 2022-11-20 23:41:10 发布
long round = Math.round(-11.5);
System.out.println(round);
-11