floor(3) Library Functions Manual floor(3) NOM floor, floorf, floorl - Le plus grand entier inferieur ou egal a x BIBLIOTHEQUE Bibliotheque de math (libm, -lm) SYNOPSIS #include double floor(double x); float floorf(float x); long double floorl(long double x); Exigences de macros de test de fonctionnalites pour la glibc (consulter feature_test_macros(7)) : floorf(), floorl() : _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Depuis la glibc 2.19 : */ _DEFAULT_SOURCE || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE DESCRIPTION Ces fonctions renvoient la plus grande valeur entiere qui n'est pas strictement superieure a x. Par exemple, floor(0,5) vaut 0,0 et floor(-0,5) vaut -1,0. VALEUR RENVOYEE Ces fonctions renvoient la partie entiere de x. Si x est un nombre entier, +0, -0, NaN ou une valeur infinie, la valeur x elle-meme est renvoyee. ERREURS Aucune erreur n'est survenue' ATTRIBUTS Pour une explication des termes utilises dans cette section, consulter attributes(7). +---------------------------------+--------------------------+---------+ |Interface | Attribut | Valeur | +---------------------------------+--------------------------+---------+ |floor(), floorf(), floorl() | Securite des threads | MT-Safe | +---------------------------------+--------------------------+---------+ STANDARDS C11, POSIX.1-2008. HISTORIQUE C99, POSIX.1-2001. La variante renvoyant double est egalement conforme a SVr4, 4.3BSD et C89. SUSv2 and POSIX.1-2001 contain text about overflow (which might set errno to ERANGE, or raise an FE_OVERFLOW exception). In practice, the result cannot overflow on any current machine, so this error-handling stuff was just nonsense. (More precisely, overflow can happen only when the maximum value of the exponent is smaller than the number of mantissa bits. For the IEEE-754 standard 32-bit and 64-bit floating-point numbers the maximum value of the exponent is 127 (respectively, 1023), and the number of mantissa bits including the implicit bit is 24 (respectively, 53).) This was removed in POSIX.1-2008. VOIR AUSSI ceil(3), lrint(3), nearbyint(3), rint(3), round(3), trunc(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 et Cedric Boutillier 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.12 23 juillet 2024 floor(3)