INumberBase<TSelf>.IsZero(TSelf) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Détermine si une valeur est égale à zéro.
public:
static bool IsZero(TSelf value);
public static abstract bool IsZero(TSelf value);
static member IsZero : 'Self -> bool
Public Shared Function IsZero (value As TSelf) As Boolean
Paramètres
- value
- TSelf
Valeur à vérifier.
Retours
true s’il value s’agit de zéro ; sinon, false.
Remarques
Cette fonction traite à la fois zéro positif et négatif comme zéro, et retourne donc true pour +0.0 et -0.0.