##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# fmin

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

Defined in header `<math.h>` |  |
float fminf( float x, float y ); |  | (since C99)
double fmin( double x, double y ); |  | (since C99)
long double fminl( long double x, long double y ); |  | (since C99)

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

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