Java Number Min Value min(double a, double b, double c, double d)

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

Description

Return smallest of four numbers.

License

Apache License

Parameter

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

Return

Smallest of a, b, c and d.

Declaration

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

Method Source Code

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

public class Main {
    /**//ww w  .  j  av a 2  s  . c o m
     * Return smallest of four numbers.
     *
     * @param a First number to find smallest among.
     * @param b Second number to find smallest among.
     * @param c Third number to find smallest among.
     * @param d Fourth number to find smallest among.
     * @return Smallest of a, b, c and d.
     */
    private static double min(double a, double b, double c, double d) {
        return Math.min(Math.min(a, b), Math.min(c, d));
    }
}

Related

  1. min(double a, double b)
  2. min(double a, double b)
  3. min(Double a, Double b)
  4. min(double a, double b)
  5. min(double a, double b, boolean backward)
  6. min(double d1, double d2)
  7. min(Double first, Double second)
  8. min(double one, double two)
  9. min(double v1, double v2, double v3, double v4)