Single.IsInteger(Single) Método

Definição

Determina se um valor representa um valor integral.

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

Parâmetros

value
Single

O valor a ser verificado.

Devoluções

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

Implementações

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