std::nextafter, std::nexttoward
Da 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. |
Defined in header <cmath>
|
||
float nextafter( float from, float to ); |
(1) | (a partir do C++ 11) |
double nextafter( double from, double to ); |
(2) | (a partir do C++ 11) |
long double nextafter( long double from, long double to ); |
(3) | (a partir do C++ 11) |
Promoted nextafter( Arithmetic from, Arithmetic to ); |
(4) | (a partir do C++ 11) |
float nexttoward( float from, long double to ); |
(5) | (a partir do C++ 11) |
double nexttoward( double from, long double to ); |
(6) | (a partir do C++ 11) |
long double nexttoward( long double from, long double to ); |
(7) | (a partir do C++ 11) |
double nexttoward( Integral from, long double to ); |
(8) | (a partir do C++ 11) |
Retorna o próximo valor representável de
4) from
na direção de to
. Se from
igual a to
, to
é retornado.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.
Se algum argumento tem tipo integral, ele é convertido para double. Se qualquer outro argumento é long double, em seguida, o tipo de retorno é long double, caso contrário é 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 ponto flutuante
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
o próximo valor de
from
representável no sentido 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] Exemplo
This section is incomplete Reason: no example |