Partager via


nfloat.IsNaN(nfloat) Méthode

Définition

Retourne une valeur qui indique si la valeur spécifiée n'est pas un nombre (NaN).

public static bool IsNaN (nfloat f);
static member IsNaN : nfloat -> bool

Paramètres

f
nfloat

Nombre à virgule flottante nfloat.

Retours

true si d prend la NaNvaleur ; sinon, false.

Remarques

IsNaN(nfloat) retourne false si une nfloat valeur est ou PositiveInfinityNegativeInfinity. Pour tester ces valeurs, utilisez les IsInfinity(nfloat)méthodes , IsPositiveInfinity(nfloat)et M:System.Double.IsNegativeInfinity(System.nfloat).

S’applique à