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小学数学练习
转载请注明原文地址: https://mac.8miu.com/read-25804.html