◐ Shell
clean mode source ↗

std::nextafter, std::nexttoward – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<cmath>

float nextafter( float from, float to );

(1) (seit C++11)

double nextafter( double from, double to );

(2) (seit C++11)

long double nextafter( long double from, long double to );

(3) (seit C++11)

Promoted nextafter( Arithmetic from, Arithmetic to );

(4) (seit C++11)

float nexttoward( float from, long double to );

(5) (seit C++11)

double nexttoward( double from, long double to );

(6) (seit C++11)

long double nexttoward( long double from, long double to );

(7) (seit C++11)

double nexttoward( Integral from, long double to );

(8) (seit C++11)

Gibt den nächsten Wert der darstellbaren from in Richtung to. Wenn from um to entspricht, wird to zurückgegeben .

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.

4)

Wenn ein Argument hat integralen Typ, wird es double gegossen. Wenn ein anderes Argument long double ist, dann ist der Rückgabetyp long double ist, sonst ist 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.

Parameter

from, to -

Fließkommazahlen

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.

Rückgabewert

der nächste darstellbare Wert from in Richtung 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.

Beispiel