Math.minInt()
Signature
int minInt (int a, int b)
Domain
action, condition, query
Description
Returns the smaller of two int
values. That is,
the result the argument closer to the value of
Integer.MIN_VALUE
. If the arguments have the same
value, the result is that same value.
Parameters
Name | Type | Description |
a | int | An argument. |
b | int | Another argument. |
Returns
Type | Description |
int | The smaller of a and b . |
See Also
java.lang.Long#MIN_VALUE
Example
String result = String.valueOfInt (Math.minInt (4, 29));
Result is: result contains: "4".