Int128.IsEvenInteger(Int128) Metodo

Definizione

Determina se un valore rappresenta un numero integrale pari.

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

Parametri

value
Int128

Restituisce

Boolean

true se value è un intero pari; in caso contrario, false.

Implementazioni

Commenti

Questo metodo gestisce correttamente i valori a virgola mobile e quindi 2.0 restituirà true mentre 2.2 restituirà false.

Un valore restituito di false non implica che IsOddInteger(TSelf) restituirà true. Un numero con una parte frazionaria, ad esempio , 3.3non è pari o dispari.

Si applica a