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