Share via


UIntPtr.IsOddInteger(UIntPtr) Metodo

Definizione

Determina se un valore rappresenta un numero integrale dispari.

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

Parametri

value
UIntPtr

unativeint

Restituisce

Boolean

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

Implementazioni

Commenti

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

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

Si applica a