Math.minLong()

Signature

long minLong (long a, long b)

Domain

action, condition

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

NameTypeDescription
alongAn argument.
blongAnother argument.

Returns

TypeDescription
longThe smaller of a and b.

Cautions

none

See Also

java.lang.Long#MIN_VALUE

Example


String result = String.valueOfLong (Math.minLong (4L, 29L));

Result is: result contains: "4"