NFloat.IsInteger(NFloat) 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 représente un nombre intégral.
public:
static bool IsInteger(System::Runtime::InteropServices::NFloat value) = System::Numerics::INumberBase<System::Runtime::InteropServices::NFloat>::IsInteger;
public static bool IsInteger(System.Runtime.InteropServices.NFloat value);
static member IsInteger : System.Runtime.InteropServices.NFloat -> bool
Public Shared Function IsInteger (value As NFloat) As Boolean
Paramètres
- value
- NFloat
Valeur à vérifier.
Retours
true si value est un entier ; sinon, false.
Implémente
Remarques
Cette méthode gère correctement les valeurs à virgule flottante et donc 2.0 et 3.0 retourne true pendant 2.2 et 3.3 retourne false.