Provided by: manpages-fr-dev_4.25.1-1_all 

NOM
ceil, ceilf, ceil - Plus petit entier supérieur ou égal à x
BIBLIOTHÈQUE
Bibliothèque de math (libm, -lm)
SYNOPSIS
#include <math.h> double ceil(double x); float ceilf(float x); long double ceill(long double x); Exigences de macros de test de fonctionnalités pour la glibc (consulter feature_test_macros(7)) : ceilf(), ceill() : _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L || /* Depuis la glibc 2.19 : */ _DEFAULT_SOURCE || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE
DESCRIPTION
Ces fonctions renvoient le plus petit nombre entier n'étant pas strictement inférieur à x. Par exemple, ceil(0,5) vaut 1,0 et ceil(-0,5) vaut 0,0.
VALEUR RENVOYÉE
Ces fonctions renvoient la partie entière de x par excès. Si x est un nombre entier, +0, -0, NaN ou une valeur infinie, la valeur x elle-même est renvoyée.
ERREURS
Aucune erreur n'est survenue'
ATTRIBUTS
Pour une explication des termes utilisés dans cette section, consulter attributes(7). ┌───────────────────────────────────────────────────────────────────────┬──────────────────────┬─────────┐ │Interface │ Attribut │ Valeur │ ├───────────────────────────────────────────────────────────────────────┼──────────────────────┼─────────┤ │ceil(), ceilf(), ceill() │ Sécurité des threads │ MT-Safe │ └───────────────────────────────────────────────────────────────────────┴──────────────────────┴─────────┘
STANDARDS
C11, POSIX.1-2008.
HISTORIQUE
C99, POSIX.1-2001. La variante renvoyant double est également conforme à 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. La partie entière renvoyée par ces fonctions peut être trop grande pour être stockée dans un type entier (int, long, etc.). Pour éviter les dépassements, qui produiront des résultats indéfinis, une application devrait vérifier la validité de la valeur renvoyée avec l'intervalle accepté avant de l'affecter à un type entier.
VOIR AUSSI
floor(3), lrint(3), nearbyint(3), rint(3), round(3), trunc(3)
TRADUCTION
La traduction française de cette page de manuel a été créée par Christophe Blaess <https://www.blaess.fr/christophe/>, Stéphan Rafin <stephan.rafin@laposte.net>, Thierry Vignaud <tvignaud@mandriva.com>, François Micaux, Alain Portal <aportal@univ-montp2.fr>, Jean-Philippe Guérard <fevrier@tigreraye.org>, Jean-Luc Coulon (f5ibh) <jean-luc.coulon@wanadoo.fr>, Julien Cristau <jcristau@debian.org>, Thomas Huriaux <thomas.huriaux@gmail.com>, Nicolas François <nicolas.francois@centraliens.net>, Florentin Duneau <fduneau@gmail.com>, Simon Paillard <simon.paillard@resel.enst-bretagne.fr>, Denis Barbier <barbier@debian.org>, David Prévot <david@tilapin.org>, Cédric Boutillier <cedric.boutillier@gmail.com> et Jean-Pierre Giraud <jean- pierregiraud@neuf.fr> Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 ⟨https://www.gnu.org/licenses/gpl-3.0.html⟩ concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à ⟨debian-l10n-french@lists.debian.org⟩.