Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/numeric/math/nextafter"

From cppreference.com
< cpp‎ | numeric‎ | math
(new)
 
(fix title)
Line 1: Line 1:
{{cpp/title|nextafter}}
+
{{cpp/title|nextafter|nexttoward}}
 
{{cpp/numeric/math/sidebar}}
 
{{cpp/numeric/math/sidebar}}
 
{{ddcl list begin}}
 
{{ddcl list begin}}

Revision as of 03:41, 27 July 2011

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       nextafter( float from, float to );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
double      nextafter( double from, double to );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
long double nextafter( long double from, long double to );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
float       nexttoward( float from, long double to );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
double      nexttoward( double from, long double to );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> <tr class="t-dcl ">

<td >
long double nexttoward( long double from, long double to );
</td>

<td class="t-dcl-nopad"> </td> <td > Template:mark c++0x feature </td> </tr> Template:ddcl list end

Returns the next representable value of from in the direction of to. If from equals to to, to is returned.

Template:params

from, to - floating point values

Template:returns the next representable value of from in the direction of to.

Template:example cpp