Math.round(-11.5)为什么返回(long)-11?
而Math.round(-11.3)=-11,Math.round(-11.8)=-12;
JDK帮助说
public static long round(double a)
Returns the closest long to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type long. In other words, the result is equal to the value of the expression: (long)Math.floor(a + 0.5d)/////////////////////////////////////////////////////////////////////////////public static double floor(double a)
Returns the largest (closest to positive infinity) double value that is not greater than the argument and is equal to a mathematical integer. Special cases: 
If the argument value is already equal to a mathematical integer, then the result is the same as the argument. 
If the argument is NaN or an infinity or positive zero or negative zero, then the result is the same as the argument.Parameters:
a - a value. 
Returns:
the smallest (closest to negative infinity) floating-point value that is not less than the argument and is equal to a mathematical integer