//取绝对值 int b=Math.abs(-1); //取最大值 int a=Math.max(20,10); //取最小值 int c=Math.min(10,20); double power=Math.pow(2,3);//(2的3次方) double ceilVal=Math.ceil(3.2);//输出4.0 向上取整 double ceilVal2=Math.floor(4.6);//输出4.0;向下取整
//取绝对值 int b=Math.abs(-1); //取最大值 int a=Math.max(20,10); //取最小值 int c=Math.min(10,20); double power=Math.pow(2,3);//(2的3次方) double ceilVal=Math.ceil(3.2);//输出4.0 向上取整 double ceilVal2=Math.floor(4.6);//输出4.0;向下取整