std::nextafter, std::nexttoward
Template:ddcl list begin <tr class="t-dsc-header">
<td><cmath>
<td></td> <td></td> </tr> <tr class="t-dcl ">
<td ><td > (1) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (2) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (3) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (4) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (5) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (6) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (7) </td> <td > (since C++11) </td> </tr> <tr class="t-dcl ">
<td ><td > (8) </td> <td > (since C++11) </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.
4) If any argument has integral type, it is cast to double. If any other argument is long double, then the return type is long double, otherwise it is double
Parameters
from, to | - | floating point values |
Return value
the next representable value of from
in the direction of to
.
Example
This section is incomplete Reason: no example |