public static double min ( double a , double b ) { if ( Double . isNaN ( a ) ) { return b ; } if ( Double . isNaN ( b ) ) { return a ; } return a < b ? a : b ; }
Returns the minimum between the two parameters