Determine the minimum of two floating-point numbers
#include <math.h> double fmin( double x, double y ); float fminf( float x, float y ); long double fminl( long double x, long double y );
The fmin(), fminf(), and fminl() functions determine the minimum of two floating-point numbers. If just one of the arguments is a NaN, the functions choose the numeric value.
The minimum of the arguments. If x and y are both NaN, these functions return NaN.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |