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

Definição

Determina se um valor representa um número inteiro.

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.

Devoluções

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

Observações

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

Aplica-se a