java Math.round() Java中的四捨五入函數 - 歲寒松柏 - 博客頻道 - CSDN.NET
讓我們看看JDK的說明: (1)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...