public class math_1 {
public static void main(String[] args) {
System.out.println("计算绝对值的结果:"+Math.abs(-10));
System.out.println("求大于参数的最小整数:"+Math.ceil(5.2));
System.out.println("求小于参数的最大整数:"+Math.floor(5.2));
System.out.println("四舍五入:"+Math.round(5.3));
System.out.println("最大值:"+Math.max(5,3));
System.out.println("最小值:"+Math.min(5,3));
System.out.println("生成一个大于等于0.0小于1.0的随机值:"+Math.random());
System.out.println("开平方:"+Math.sqrt(9));
System.out.println("指数函数的值==>2的3次方:"+Math.pow(2,3));
}
}