Name

fmin

Synopsis

Determines the lesser of two floating-point numbers

#include <math.h>
doublefmin( double x, double y );
float fminf( float x, float y );
long double fminl( long double x , long double y );

The fmin() functions return the value of the lesser argument.

Example

See the example for fmax().

See Also

fabs(), fmax()

Get C in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.