INumberBase<TSelf>.IsInteger(TSelf) Método

Definição

Determina se um valor representa um número integral.

public:
 static bool IsInteger(TSelf value);
public static abstract bool IsInteger (TSelf value);
static member IsInteger : 'Self -> bool
Public Shared Function IsInteger (value As TSelf) As Boolean

Parâmetros

value
TSelf

O valor a ser verificado.

Retornos

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

Comentários

Esse método manipula corretamente os valores de ponto flutuante e assim por 2.0 diante e 3.0 retornará true enquanto 2.2 e 3.3 retornará false.

Aplica-se a