fmin

Syntax

double fmin(double a, double b, ...)

Arguments

a
Any floating-point double value.
b
Any floating-point double value.
...
Any number of floating-point double values.

Return

The lower value of all given parameters.

Description

Returns the least of the given values.

A common use for fmin is to truncate a variable to a certain upper boundary.

Example

double p = fmin(1.0, 2.0);  // sets p to 1.0

See Also

add, fmax, max, min, sub