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