Decimal.IsInteger(Decimal) Méthode

Définition

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 s’il value s’agit d’un entier ; sinon, false.

Implémente

Remarques

Cette méthode gère correctement les valeurs à virgule flottante et 2.0 retourne alors et 3.0true retourne 2.2.3.3false

S’applique à