dwww Home | Manual pages | Find package

ilogb(3)                   Library Functions Manual                   ilogb(3)

NOM
       ilogb,  ilogbf,  ilogbl - Obtenir l'exposant entier d'un nombre en vir-
       gule flottante

BIBLIOTHÈQUE
       Bibliothèque de math (libm, -lm)

SYNOPSIS
       #include <math.h>

       int ilogb(double x);
       int ilogbf(float x);
       int ilogbl(long double x);

   Exigences de macros de test de fonctionnalités  pour  la  glibc  (consulter
   feature_test_macros(7)) :

       ilogb() :
           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
               || _XOPEN_SOURCE >= 500
               || /* Depuis la glibc 2.19 : */ _DEFAULT_SOURCE
               || /* Versions <= 2.19 de la glibc : */ _BSD_SOURCE || _SVID_SOURCE

       ilogbf(), ilogbl() :
           _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L
               || /* Depuis la glibc 2.19 : */ _DEFAULT_SOURCE
               || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE

DESCRIPTION
       Ces fonctions renvoient l'exposant de leur argument sous forme d'entier
       signé. Si aucune erreur ne se produit, ces fonctions sont  équivalentes
       aux fonctions logb(3) avec un transtypage vers le type int.

VALEUR RENVOYÉE
       En  cas  de  succès, ces fonctions renvoient l'exposant de x sous forme
       d'entier signé.

       Si x est nul, cela cause une erreur d'intervalle et les fonctions  ren-
       voient FP_ILOGB0.

       Si  x  n'est pas un nombre (NaN), cela cause une erreur d'intervalle et
       les fonctions renvoient FP_ILOGBNAN.

       Si x est l'infini négatif ou positif, cela cause  une  erreur  d'inter-
       valle et les fonctions renvoient INT_MAX.

ERREURS
       Voir  math_error(7)  pour savoir comment déterminer si une erreur s'est
       produite lors de l'appel d'une de ces fonctions.

       Les erreurs suivantes peuvent se produire :

       Erreur d'intervalle : x est nul ou n'est pas un nombre (NaN)
              An invalid floating-point exception (FE_INVALID)  is raised, and
              errno is set to EDOM (but see BUGS).

       Erreur de domaine : x est une valeur infinie
              An invalid floating-point exception (FE_INVALID)  is raised, and
              errno is set to EDOM (but see BUGS).

ATTRIBUTS
       Pour une explication des termes utilisés dans cette section,  consulter
       attributes(7).

       ┌─────────────────────────────────────┬──────────────────────┬─────────┐
       │InterfaceAttributValeur  │
       ├─────────────────────────────────────┼──────────────────────┼─────────┤
       │ilogb(), ilogbf(), ilogbl()          │ Sécurité des threads │ MT-Safe │
       └─────────────────────────────────────┴──────────────────────┴─────────┘

STANDARDS
       C99, POSIX.1-2001, POSIX.1-2008.

BOGUES
       Before  glibc 2.16, the following bugs existed in the glibc implementa-
       tion of these functions:

       •  The domain error case where x is 0 or a NaN did not cause  errno  to
          be set or (on some architectures) raise a floating-point exception.

       •  The  domain error case where x is an infinity did not cause errno to
          be set or raise a floating-point exception.

VOIR AUSSI
       log(3), logb(3), significand(3)

TRADUCTION
       La traduction française de cette page de manuel a été créée par  Chris-
       tophe  Blaess  <https://www.blaess.fr/christophe/>, Stéphan Rafin <ste-
       phan.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.cou-
       lon@wanadoo.fr>,  Julien  Cristau <jcristau@debian.org>, Thomas Huriaux
       <thomas.huriaux@gmail.com>, Nicolas François  <nicolas.francois@centra-
       liens.net>,  Florentin  Duneau <fduneau@gmail.com>, Simon Paillard <si-
       mon.paillard@resel.enst-bretagne.fr>,   Denis   Barbier    <barbier@de-
       bian.org>,  David  Prévot <david@tilapin.org> et Cédric Boutillier <ce-
       dric.boutillier@gmail.com>

       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⟩.

Pages du manuel de Linux 6.03   5 février 2023                        ilogb(3)

Generated by dwww version 1.15 on Sat Jun 29 00:39:57 CEST 2024.