std::nextafter, std::nexttoward
De cppreference.com
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
Definido en la cabecera <cmath>
|
||
float nextafter( float from, float to ); |
(1) | (desde C++11) |
double nextafter( double from, double to ); |
(2) | (desde C++11) |
long double nextafter( long double from, long double to ); |
(3) | (desde C++11) |
Promoted nextafter( Arithmetic from, Arithmetic to ); |
(4) | (desde C++11) |
float nexttoward( float from, long double to ); |
(5) | (desde C++11) |
double nexttoward( double from, long double to ); |
(6) | (desde C++11) |
long double nexttoward( long double from, long double to ); |
(7) | (desde C++11) |
double nexttoward( Integral from, long double to ); |
(8) | (desde C++11) |
Devuelve el siguiente valor representable de
4) from
en la dirección de to
. Si from
es igual a to
, to
se devuelve .Original:
Returns the next representable value of
from
in the direction of to
. If from
equals to to
, to
is returned.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Si algún argumento es de tipo integral, que se convierte en double. Si cualquier otro argumento es long double, entonces el tipo de retorno es long double, de lo contrario es double
Original:
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
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Parámetros
from, to | - | valores de punto flotante
Original: floating point values The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
[editar] Valor de retorno
el siguiente valor de
from
representable en la dirección de to
.Original:
the next representable value of
from
in the direction of to
.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
[editar] Ejemplo
Esta sección está incompleta Razón: sin ejemplo |