/**
*演示Math
*/
public class TestMath {
public static void main(String[] args) {
System.out.println(Math.floor(-2.1));//下舍入
System.out.println(Math.ceil(-2.1));//上舍入
System.out.println(Math.PI);
}
}
*演示Math
*/
public class TestMath {
public static void main(String[] args) {
System.out.println(Math.floor(-2.1));//下舍入
System.out.println(Math.ceil(-2.1));//上舍入
System.out.println(Math.PI);
}
}