Java中Math类的常用方法
Math类常用方法:
public class MathTest{
public static void main(String[] args){
System.out.println("计算绝对值:"+Math.abs(-4));//double,float,int,long
System.out.println("计算正弦值:"+Math.sin(1.57));//double
System.out.println("计算余弦值:"+Math.co
原创
2021-04-12 20:54:41 ·
128 阅读 ·
0 评论