double fmin(double a, double b, ...)
The lower value of all given parameters.
Returns the least of the given values.
A common use for fmin is to truncate a variable to a certain upper boundary.
double p = fmin(1.0, 2.0); // sets p to 1.0
add, fmax, max, min, sub