public static int round(float a);
public static long round(double a);
public static double floor(double a);
round实际相当于(int)Math.floor(a + 0.5f);(int)Math.floor(a + 0.5d)。
对于正数:floor是不超过整数部分,round是(int)Math.floor(a + 0.5f),四舍五入。
对于负数:floor是不超过整数部分,round是(int)Math.floor(a + 0.5f)。