std::nextafter, std::nexttoward
Da cppreference.com.
![]() | Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate. La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
Elemento definito nell'header <cmath> | ||
float nextafter(float from, float to ); | (1) | (dal C++11) |
double nextafter(double from, double to ); | (2) | (dal C++11) |
longdouble nextafter(longdouble from, longdouble to ); | (3) | (dal C++11) |
Promoted nextafter( Arithmetic from, Arithmetic to ); | (4) | (dal C++11) |
float nexttoward(float from, longdouble to ); | (5) | (dal C++11) |
double nexttoward(double from, longdouble to ); | (6) | (dal C++11) |
longdouble nexttoward(longdouble from, longdouble to ); | (7) | (dal C++11) |
double nexttoward( Integral from, longdouble to ); | (8) | (dal C++11) |
Restituisce il valore del successivo rappresentabile
4) from
in direzione di to
. Se from
uguale a to
, to
viene restituito.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 un qualsiasi argomento è di tipo integrale, il cast double. Se qualsiasi altro argomento è longdouble, quindi il tipo di ritorno è longdouble, altrimenti è double
Original:
If any argument has integral type, it is cast to double. If any other argument is longdouble, then the return type is longdouble, 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.
[modifica]Parametri
from, to | - | valori in virgola mobile 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. |
[modifica]Valore di ritorno
il valore successivo della
from
rappresentabile in direzione 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.
[modifica]Esempio
This section is incomplete Reason: no example |