Math.ceil、Math.floor、Math.round用法
Math.ceil、Math.floor、Math.round用法??
public static void main(String[] args) {
// Math.ceil(double)向上取整
System.out.println(Math.ceil(11.4)); //向上取整12
System.out.println(Math.ceil(-1
原创
2017-10-19 09:40:26 ·
621 阅读 ·
0 评论