Partager via


Int128.IsEvenInteger(Int128) Méthode

Définition

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

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

Paramètres

value
Int128

Retours

Boolean

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

Implémente

Remarques

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

Une valeur de retour de 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 à