IntPtr.IsOddInteger(IntPtr) Método

Definición

Determina si un valor representa un número entero impar.

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

Parámetros

value
IntPtr

nativeint

Devoluciones

Boolean

true es si value es un entero impar; en caso contrario, falsees .

Implementaciones

Comentarios

Este método controla correctamente los valores de punto flotante y, por tanto 3.0 , devolverá true mientras 3.3 devolverá false.

Un valor devuelto de false no implica que IsEvenInteger(TSelf) devuelva true. Un número con una parte fraccionarcional, por ejemplo, 3.3, no es ni par ni impar.

Se aplica a