NFloat.IsOddInteger(NFloat) Metodo

Definizione

Determina se un valore rappresenta un numero integrale dispari.

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

Parametri

value
NFloat

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