BigInteger.IsEvenInteger(BigInteger) Méthode

Définition

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

public:
 static bool IsEvenInteger(System::Numerics::BigInteger value) = System::Numerics::INumberBase<System::Numerics::BigInteger>::IsEvenInteger;
public static bool IsEvenInteger(System.Numerics.BigInteger value);
static member IsEvenInteger : System.Numerics.BigInteger -> bool
Public Shared Function IsEvenInteger (value As BigInteger) As Boolean

Paramètres

value
BigInteger

Valeur à vérifier.

Retours

true s’il value s’agit d’un entier pair ; sinon, false.

Implémente

Remarques

Cette méthode gère correctement les valeurs à virgule flottante, et 2.0 retourne alors true le 2.2 retour false.

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

S’applique à