UInt32.IsEvenInteger(UInt32) Méthode

Définition

Détermine si une valeur représente un nombre intégral pair.

public:
 static bool IsEvenInteger(System::UInt32 value) = System::Numerics::INumberBase<System::UInt32>::IsEvenInteger;
public static bool IsEvenInteger (uint value);
static member IsEvenInteger : uint32 -> bool
Public Shared Function IsEvenInteger (value As UInteger) As Boolean

Paramètres

value
UInt32

Valeur à vérifier.

Retours

true si value est un entier pair ; sinon, false.

Implémente

Remarques

Cette méthode gère correctement les valeurs à virgule flottante et retourne true2.2falsealors 2.0 retourne .

Une valeur de retour de n’implique false pas que IsOddInteger(TSelf) retourne true. Un nombre avec une partie fractionnaire, par exemple, 3.3n’est pas pair ou impair.

S’applique à