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

doublemax(double no1, double no2, double no3)
max
return Math.max(Math.max(no1, no2), no3);
doublemax(double num1, double num2, double num3)
max
double max = num1;
if (num2 > max) {
    max = num2;
if (num3 > max) {
    return num3;
return max;
...
doublemax(double number1, double number2)
max
return number1 > number2 ? number1 : number2;
doublemax(double one, double two)
max
return Math.max(one, two);
doublemax(double paramDouble1, double paramDouble2, double paramDouble3)
max
return StrictMath.max(paramDouble1 > paramDouble2 ? paramDouble1 : paramDouble2,
        StrictMath.max(paramDouble2, paramDouble3));
doublemax(double v1, double v2, double v3, double v4)
max
double max = v1;
if (v2 > max)
    max = v2;
if (v3 > max)
    max = v3;
if (v4 > max)
    max = v4;
return max;
...
doublemax(double x, double y)
Returns the greater of two double values, but treats NaN as the smallest possible value.
return Double.isNaN(x) ? y : Double.isNaN(y) ? x : Math.max(x, y);
doublemax(double x0, double x1, double x2)
max
double a = Math.max(x0, x1);
return Math.max(a, x2);
doublemax(final double a, final double b, final double c)
max
return Math.max(Math.max(a, b), c);
floatmax(final float a, final float b)
max
return a > b ? a : b;