问题描述:
Math.round()对负数操作问题
System.out.println(Math.round(-11.5));为什么得的是-11
而System.out.println(Math.round(-11.51));得的就是-12呢?
System.out.println(Math.round(-11.5));为什么得的是-11
而System.out.println(Math.round(-11.51));得的就是-12呢?
问题解答:
我来补答展开全文阅读