UInt64.IsEvenInteger(UInt64) Método

Definição

Determina se um valor representa um número integral par.

public:
 static bool IsEvenInteger(System::UInt64 value) = System::Numerics::INumberBase<System::UInt64>::IsEvenInteger;
public static bool IsEvenInteger(ulong value);
static member IsEvenInteger : uint64 -> bool
Public Shared Function IsEvenInteger (value As ULong) As Boolean

Parâmetros

value
UInt64

O valor a ser verificado.

Retornos

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

Implementações

Comentários

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

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

Aplica-se a