Java Number Max Value max(double a, double b, double c, double d)

Here you can find the source of max(double a, double b, double c, double d)

Description

Return largest of four numbers.

License

Apache License

Parameter

Parameter Description
a First number to find largest among.
b Second number to find largest among.
c Third number to find largest among.
d Fourth number to find largest among.

Return

Largest of a, b, c and d.

Declaration

private static double max(double a, double b, double c, double d) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

public class Main {
    /**//  w  w  w .  j a va  2  s. co  m
     * Return largest of four numbers.
     *
     * @param a First number to find largest among.
     * @param b Second number to find largest among.
     * @param c Third number to find largest among.
     * @param d Fourth number to find largest among.
     * @return Largest of a, b, c and d.
     */
    private static double max(double a, double b, double c, double d) {
        return Math.max(Math.max(a, b), Math.max(c, d));
    }
}

Related

  1. max(byte value1, byte value2)
  2. max(double a, double b)
  3. max(double a, double b)
  4. max(double a, double b)
  5. max(double a, double b, double c, double d)
  6. max(double d1, double d2)
  7. max(double first, double second, double third, double fourth)
  8. max(double n1, double n2, double n3)
  9. max(double no1, double no2, double no3)