Decimal.IsInteger(Decimal) Método

Definição

Determina se um valor representa um número integral.

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

Parâmetros

value
Decimal

O valor a ser verificado.

Retornos

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 retornará 2.03.0true enquanto 2.2 e 3.3 retornará.false

Aplica-se a