std::fmin

From Cppreference

Jump to: navigation, search
Defined in header <cmath>

float       fmin( float x, float y );
(C++11 feature)
double      fmin( double x, double y );
(C++11 feature)
long double fmin( long double x, long double y );
(C++11 feature)

Returns the smaller of two floating point arguments.

[edit] Parameters

x, y - floating point values

[edit] Return value

The smaller of two floating point values.

[edit] See also

fmax (C++11)
larger of two floating point values
(function)