##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# fmax

From cppreference.com
< c‎ | numeric‎ | math

Defined in header `<math.h>` |  |
float fmaxf( float x, float y ); |  | (since C99)
double fmax( double x, double y ); |  | (since C99)
long double fmaxl( long double x, long double y ); |  | (since C99)

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 (C99) | smaller of two floating point values (function) [edit]
C++ documentation for fmax

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/numeric/math/fmax&oldid=62579"