Decimal.IsInteger(Decimal) 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::Decimal value) = System::Numerics::INumberBase<System::Decimal>::IsInteger;
public static bool IsInteger (decimal value);
static member IsInteger : decimal -> bool
Public Shared Function IsInteger (value As Decimal) As Boolean
Paramètres
- value
- Decimal
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 retourne alors 2.0
true
3.0
et 2.2
3.3
retournent .false
S’applique à
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour