Java Utililty Methods Number Min Value

List of utility methods to do Number Min Value

Description

The list of methods to do Number Min Value are organized into topic(s).

Method

floatmin(float dirOffset, float min, float max)
Gets the minimum of two values based on direction
return dirOffset == 1 ? max : dirOffset == -1 ? 0 : min;
floatmin(float value1, float value2)
Returns the lesser of two values.
return Math.min(value1, value2);
floatmin(float value1, float value2)
min
return Math.min(value1, value2);
floatmin(float x0, float x1)
Returns the smaller of the two given values.
return x0 <= x1 ? x0 : x1;
intmin(int a, int b)
min
if (a < b)
    return a;
else
    return b;
intmin(int a, int b)
min
return a < b ? a : b;
intmin(int a, int b)
min
if (a < b)
    return a;
return b;
intmin(int a, int b)
min
if (a < b)
    return a;
else
    return b;
intmin(int a, int b)
min
return (a <= b) ? a : b;
intmin(int a, int b)
min between a and b
return a < b ? a : b;