Everything

fmin / fminf / fminl


Obtains the smaller of two arguments.

[Format]

#include <math.h>

double fmin(double d1, double d2);

float fminf(float d1, float d2);

long double fminl(long double d1, long double d2);

[Parameters]

d1, d2 Values to be compared

[Return values]

Smaller of two arguments

[Remarks]

The fmin function group recognizes a not-a-number as a lack of data. When one argument is a not-a-number and the other is a numeric value, the function returns the numeric value.