public static long round (double a)

Returns the closest long to the argument, with ties rounding to positive infinity.

Special cases:

Parameters:
a    a floating-point value to be rounded to a long.

Returns:  the value of the argument rounded to the nearest long value.

See also:
java.lang.Long.MAX_VALUE, java.lang.Long.MIN_VALUE