public class Test {
public static void main(String[] args) {
System.out.println("Math.round(-11.5)="+Math.round(-11.5));
System.out.println("Math.round(-11.6)="+Math.round(-11.6));
}
}
output:
Math.round(-11.5)=-11
Math.round(-11.6)=-12
阅读(2018) | 评论(0) | 转发(0) |