Share via


Int32.IsOddInteger(Int32) Metodo

Definizione

Determina se un valore rappresenta un numero integrale dispari.

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

Parametri

value
Int32

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