UInt64.IsOddInteger(UInt64) Metodo

Definizione

Determina se un valore rappresenta un numero integrale dispari.

public:
 static bool IsOddInteger(System::UInt64 value) = System::Numerics::INumberBase<System::UInt64>::IsOddInteger;
public static bool IsOddInteger(ulong value);
static member IsOddInteger : uint64 -> bool
Public Shared Function IsOddInteger (value As ULong) As Boolean

Parametri

value
UInt64

Valore da controllare.

Valori restituiti

true se value è un 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