Returns the closest long
to the argument, with ties
rounding to positive infinity.
Special cases:
Long.MIN_VALUE
, the result is
equal to the value of Long.MIN_VALUE
.
Long.MAX_VALUE
, the result is
equal to the value of Long.MAX_VALUE
.
a | a floating-point value to be rounded to a
long . |
long
value.
java.lang.Long.MAX_VALUE, java.lang.Long.MIN_VALUE
Diagram: Math