nextup(3) Library Functions Manual nextup(3) NOM nextup, nextupf, nextupl, nextdown, nextdownf, nextdownl - Renvoyer le prochain nombre en virgule flottante vers l'infini positif ou negatif BIBLIOTHEQUE Bibliotheque de math (libm, -lm) SYNOPSIS #define _GNU_SOURCE /* Consulter feature_test_macros(7) */ #include double nextup(double x); float nextupf(float x); long double nextupl(long double x); double nextdown(double x); float nextdownf(float x); long double nextdownl(long double x); DESCRIPTION Les fonctions nextup(), nextupf() et nextupl() renvoient le premier nombre en virgule flottante representable superieur a x. If x is the smallest representable negative number in the corresponding type, these functions return -0. If x is +0 or -0, the returned value is the smallest representable positive number of the corresponding type. Si x a pour valeur plus l'infini, la valeur renvoyee est plus l'infini. Si x a pour valeur moins l'infini, la valeur renvoyee est le plus grand nombre negatif fini representable pour le type correspondant. If x is NaN, the returned value is NaN. La valeur renvoyee par nextdown(x) est -nextup(-x) avec un comportement identique pour les fonctions des autres types. VALEUR RENVOYEE Voir DESCRIPTION. ATTRIBUTS Pour une explication des termes utilises dans cette section, consulter attributes(7). +---------------------------------+--------------------------+---------+ |Interface | Attribut | Valeur | +---------------------------------+--------------------------+---------+ |nextup(), nextupf(), nextupl(), | Securite des threads | MT-Safe | |nextdown(), nextdownf(), | | | |nextdownl() | | | +---------------------------------+--------------------------+---------+ NORMES Ces fonctions sont decrites dans IEEE Std 754-2008 - Standard for Floating-Point Arithmetic et ISO/IEC TS 18661. HISTORIQUE glibc 2.24. VOIR AUSSI nearbyint(3), nextafter(3) TRADUCTION La traduction francaise de cette page de manuel a ete creee par Christophe Blaess , Stephan Rafin , Thierry Vignaud , Francois Micaux, Alain Portal , Jean-Philippe Guerard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas Francois , Florentin Duneau , Simon Paillard , Denis Barbier , David Prevot , Cedric Boutillier et Lucien Gentis Cette traduction est une documentation libre ; veuillez vous reporter a la GNU General Public License version 3 concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITE LEGALE. Si vous decouvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message a . Pages du manuel de Linux 6.18 8 fevrier 2026 nextup(3)