Math类的pow()、ceil()、floor()、round()、random()

package cn.tedu.math; public class MathDemo { //private MathDemo(){}//构造方法私有化 public static void main(String[] args) { //绝对值 System.out.println(Math.abs(-2.3)); //(底数,次幂)—可以求任意的次幂以及开根 System.out.print
相关文章
相关标签/搜索