Single.IsInteger(Single) Método

Definición

Determina si un valor representa un valor entero.

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

Valor que se va a comprobar.

Devoluciones

true es si value es un entero; en caso contrario, falsees .

Implementaciones

Comentarios

Este método controla correctamente los valores de punto flotante, por lo que 2.0 y 3.0 devolverá true mientras 2.2 y 3.3 devolverá false.

Se aplica a