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. |
<metanoindex/>
<tbody> </tbody>| Definido no cabeçalho <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) |
Retorna o próximo valor representável de
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.
4)
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 é doubleOriginal:
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 doubleThe 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.
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. |
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.
Exemplo
| Esta seção está incompleta Motivo: sem exemplo |