NFloat.IsEvenInteger(NFloat) Metodo

Definizione

Determina se un valore rappresenta un numero integrale pari.

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

Parametri

value
NFloat

Valore da controllare.

Restituisce

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