Double.IsInteger(Double) Metodo

Definizione

Determina se un valore rappresenta un valore integrale.

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

Parametri

value
Double

Valore da controllare.

Valori restituiti

true se value è un numero intero; in caso contrario, false.

Implementazioni

Commenti

Questo metodo gestisce correttamente i valori a virgola mobile e quindi 2.03.0 restituirà true mentre 2.2 e 3.3 restituirà false.

Si applica a