std::fmax
From cppreference.com
Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">
<td>Defined in header
</td>
<cmath>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">float fmax( float x, float y );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">double fmax( double x, double y );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> <tr class="t-dcl ">
<td class="t-dcl-nopad">long double fmax( long double x, long double y );
</td>
<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end
Returns the larger of two floating point arguments.
Parameters
x, y | - | floating point values |
Return value
The larger of two floating point values.