java的数学用法

mac2022-06-30  100

double b=Math.sqrt(2);//sqrt开根 System.out.println(b); System.out.println(Math.abs(-2));//abs绝对值 int d=-2; System.out.println(Math.abs(d));//同样的结果不同的方法

 

转载于:https://www.cnblogs.com/quyan/p/9674073.html

相关资源:java小学数学练习
最新回复(0)