about public static long round(double a)
it says: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.but i dont know the use of 1/2,so could help me explain that.
thank you in advance.
|