finite

Section: C Library Functions (3)
Updated: 5 février 2023
Index Return to Main Contents
 

NOM

finite, finitef, finitel, isinf, isinff, isinfl, isnan, isnanf, isnanl - Fonctions BSD de classification en virgule flottante  

BIBLIOTHÈQUE

Bibliothèque de math (libm, -lm)  

SYNOPSIS

#include <math.h>

int finite(double x);
int finitef(float x);
int finitel(long double x);

int isinf(double x);
int isinff(float x);
int isinfl(long double x);

int isnan(double x);
int isnanf(float x);
int isnanl(long double x);

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

finite(), finitef(), finitel() :

    /* glibc >= 2.19 : */ _DEFAULT_SOURCE
        || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE

isinf() :
    _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE
        || /* glibc >= 2.19 : */ _DEFAULT_SOURCE
        || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE

isinff(), isinfl() :

    /* glibc >= 2.19 : */ _DEFAULT_SOURCE
        || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE

isnan():

    _XOPEN_SOURCE || _ISOC99_SOURCE
        || /* glibc >= 2.19 : */ _DEFAULT_SOURCE
        || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE

isnanf(), isnanl() :

    _XOPEN_SOURCE >= 600
        || /* glibc >= 2.19 : */ _DEFAULT_SOURCE
        || /* glibc <= 2.19 : */ _BSD_SOURCE || _SVID_SOURCE
 

DESCRIPTION

Les fonctions finite(), finitef() et finitel() renvoient une valeur non nulle si x n'est ni infini, ni une valeur NaN (« Not a Number », ce qui signifie « pas un nombre »), et 0 autrement.

Les fonctions isnan(), isnanf() et isnanl() renvoient une valeur non nulle si x est un NaN et 0 autrement.

Les fonctions isinf(), isinff() et isinfl() renvoient 1 si x est un valeur infinie positive, -1 si x est une valeur infinie négative, 0 sinon.  

ATTRIBUTS

Pour une explication des termes utilisés dans cette section, consulter attributes(7).
InterfaceAttributValeur
finite(), finitef(), finitel(), isinf(), isinff(), isinfl(), isnan(), isnanf(), isnanl() Sécurité des threadsMT-Safe

 

NOTES

Notez que ces fonctions sont obsolètes, C99 définit les macros isfinite(), isinf() et isnan() (pour tous les types) les remplaçant. Notez de plus que la macro C99 isinf() a moins de garanties sur sa valeur de retour. Consultez fpclassify(3).  

VOIR AUSSI

fpclassify(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> et Cédric Boutillier <cedric.boutillier@gmail.com>

Cette traduction est une documentation libre ; veuillez vous reporter à la GNU General Public License version 3 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 à


 

Index

NOM
BIBLIOTHÈQUE
SYNOPSIS
DESCRIPTION
ATTRIBUTS
NOTES
VOIR AUSSI
TRADUCTION

This document was created by man2html, using the manual pages.
Time: 04:03:35 GMT, May 18, 2024