UIntPtr.IsOddInteger(UIntPtr) Método

Definição

Determina se um valor representa um número integral ímpar.

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

Parâmetros

value
UIntPtr

unativeint

O valor a ser verificado.

Retornos

true se value for um inteiro ímpar; caso contrário, false.

Implementações

Comentários

Esse método lida corretamente com valores de ponto flutuante e, portanto 3.0 , retornará true enquanto 3.3 retornará false.

Um valor retornado false não implica que IsEvenInteger(TSelf) retornará true. Um número com uma parte fracionária, por exemplo, 3.3não é par ou ímpar.

Aplica-se a