std::fmax

From Cppreference

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

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

Returns the larger of two floating point arguments.

[edit] Parameters

x, y - floating point values

[edit] Return value

The larger of two floating point values.

[edit] See also

fmin (C++11)
smaller of two floating point values
(function)