Namespaces
Variants
Views
Actions

std::remainder

From cppreference.com
< cpp‎ | numeric‎ | math
Revision as of 14:53, 24 December 2011 by P12bot (Talk | contribs)

Template:cpp/numeric/math/sidebar Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <cmath>
</td>

<td></td> <td></td> </tr> <tr class="t-dcl ">

<td >
float       remainder( float x, float y );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
double      remainder( double x, double y );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">

<td >
long double remainder( long double x, long double y );
</td>

<td class="t-dcl-nopad"> </td> <td > (since C++11) </td> </tr> Template:ddcl list end

Computes the remainder of the floating point division operation Template:cpp. In difference to fmod, the return type will be negative if Template:cpp.

Parameters

x, y - floating point values

Return value

remainder of dividing arguments

See also

Template:cpp/numeric/math/dcl list fmodTemplate:cpp/numeric/math/dcl list div