Half.IsInteger(Half) Método

Definição

Determina se um valor representa um valor integral.

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

Parâmetros

value
Half

Retornos

Boolean

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

Implementações

Comentários

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

Aplica-se a