UInt128.IsOddInteger(UInt128) Método

Definição

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

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

Parâmetros

value
UInt128

O valor a ser verificado.

Retornos

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

Implementações

Comentários

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

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

Aplica-se a