Here you can find the source of min(double a, double b, double c, double d)
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. |
private static double min(double a, double b, double c, double d)
//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)); } }