标签:2.0 ble floor mat ati ceil and oat min
Math类:用于执行基本数学运算的方法
方法:
public static int abs(int a):绝对值
public static double ceil(double a):向上取整 如12.56即为13.0
public static double floor(double a):向下取整 如12.56为12.0
public static int max/min (int a,int b):最大/最小值
public static double pow(double a,double b):a的b次幂
public static double random:随机数
public static int round(float a):四舍五入
public static double sqrt(double a) :正平方根
标签:2.0 ble floor mat ati ceil and oat min
原文地址:http://www.cnblogs.com/zengjiao/p/6222571.html