UInt128.IsOddInteger(UInt128) Metodo

Definizione

Determina se un valore rappresenta un numero integrale dispari.

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

Parametri

value
UInt128

Valore da controllare.

Restituisce

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

Implementazioni

Commenti

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

Si applica a