publicclassSummaryMath{publicstaticvoidmain(String[] args){//1.求绝对值int abs =Math.abs(-12);//2.最大值int max =Math.max(12,99);//3.最小值int min =Math.min(465,8);//求整运算//4.返回大于或等于的最小整数int ceil =(int)(Math.ceil(45.4));//5.返回小于或等于的最大整数int floor =(int)Math.floor(-66.3);//6.返回最接近的整数值,如果有两个同样接近的整数,则结果取偶数int rint =(int)Math.rint(88.8);//7.将参数加上1/2后返回最接近的整数long round =Math.round(65.1);//三角函数运算double sin =Math.sin(Math.PI);double cos =Math.cos(Math.PI);double asin =Math.asin(1);double acos =Math.acos(1);double tan =Math.tan(Math.PI);double atan =Math.atan(1);//指数运算//返回e的多少次幂double exp =Math.exp(2);double pow =Math.pow(12,8584);double sqrt =Math.sqrt(36);double cbrt =Math.cbrt(8);double log =Math.log(2);double v =Math.log10(12);//随机数(0~1.0)double random =Math.random();}}