Java Utililty Methods Number Max Value

List of utility methods to do Number Max Value

Description

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

Method

floatMax(float a, float b)
Max
return ((a) < (b) ? (b) : (a));
floatmax(float a, float b)
max
return (a >= b) ? a : b;
floatmax(float a, float b)
maximum, simpler and faster than Math.max without its additional tests
return (a > b) ? a : b;
floatmax(float a, float b, float c)
Returns the maximum value of three floats.
return (a > b) ? ((a > c) ? a : c) : ((b > c) ? b : c);
floatmax(float a, float b, float c, float d, float e)
max
float m = a;
m = b > m ? b : m;
m = c > m ? c : m;
m = e > m ? e : m;
return d > m ? d : m;
floatmax(float dirOffset, float min, float max)
Gets the maximum of two values based on direction
return dirOffset == 1 ? 1 : dirOffset == -1 ? min : max;
floatmax(float value1, float value2)
max
return Math.max(value1, value2);
floatmax(float value1, float value2)
Returns the greater of two values.
return Math.max(value1, value2);
floatmax(float x0, float x1)
Returns the greater of the two given values.
return x0 >= x1 ? x0 : x1;
intmax(int a, int b)
Returns the bigger number of a and b.
return a > b ? a : b;