INumberBase<TSelf>.IsInteger(TSelf) Metodo

Definizione

Determina se un valore rappresenta un numero integrale.

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

Parametri

value
TSelf

Valore da controllare.

Restituisce

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

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