Java Number Max Value max(double n1, double n2, double n3)

Here you can find the source of max(double n1, double n2, double n3)

Description

max

License

Apache License

Declaration

public static double max(double n1, double n2, double n3) 

Method Source Code

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

public class Main {
    public static double max(double n1, double n2, double n3) {
        return Math.max(n1, Math.max(n2, n3));
    }//w  w  w  . ja v  a2  s.  co  m

    public static double max(double... values) {
        double max = -Double.MAX_VALUE;
        for (double value : values)
            max = Math.max(max, value);
        return max;
    }
}

Related

  1. max(double a, double b)
  2. max(double a, double b, double c, double d)
  3. max(double a, double b, double c, double d)
  4. max(double d1, double d2)
  5. max(double first, double second, double third, double fourth)
  6. max(double no1, double no2, double no3)
  7. max(double num1, double num2, double num3)
  8. max(double number1, double number2)
  9. max(double one, double two)