Math.minInt()

Signature

int minInt (int a, int b)

Domain

action, condition

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

NameTypeDescription
aintAn argument.
bintAnother argument.

Returns

TypeDescription
intThe smaller of a and b.

Cautions

none

See Also

java.lang.Long#MIN_VALUE

Example


String result = String.valueOfInt (Math.minInt (4, 29));

Result is: result contains: "4"