Condividi tramite


Half.IsEvenInteger(Half) Metodo

Definizione

Determina se un valore rappresenta un numero integrale pari.

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

Parametri

value
Half

Restituisce

Boolean

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

Implementazioni

Commenti

Questo metodo gestisce correttamente i valori a virgola mobile e 2.0 quindi 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 è nemmeno o dispari.

Si applica a