Your Browser is not longer supported
Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...
{{viewport.spaceProperty.prod}}
nextafter, nextafterf, nextafterl, nexttoward, nexttowardf, nexttowardl - nächste darstellbare Gleitpunktzahl
&pagelevel(4)&pagelevel
Definition | #include <math.h> double nextafter(double x, double y); C11 float nextafterf(float x, float y); long double nextafterl(long double x, long double y); double nexttoward(double x, long double y); float nexttowardf(float x, long double y); long double nexttowardl(long double x, long double y); (Ende) |
Beschreibung | Diese Funktionen liefern die nächste darstellbare Gleitkommazahl, die in Richtung y auf x folgt. Wenn y kleiner als x ist, wird die größte darstellbare Gleitkommazahl zurückgeliefert, die kleiner als x ist. |
Returnwert | nächste darstellbare Gleitkommazahl, die in Richtung y auf x folgt |
|
| bei Erfolg. |
| +/-HUGE_VAL
+/-HUGE_VALF
+/-HUGE_VALL
| abhängig vom Funktionstyp und Vorzeichen von x, bei Fehler.
errno wird gesetzt, um den Fehler anzuzeigen. |
Fehler | nextafter() , nextafterf() , nextafterl() , nexttoward() , nexttowardf() und nexttowardl() schlagen fehlt, wenn gilt:
|
| ERANGE
| x ist endlich, aber das Ergebnis des Funktionsaufrufs würde einen Überlauf verursachen. |
Siehe auch | math.h .
|