Single.IsInteger(Single) 方法

定义

确定值是否表示整型值。

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

参数

value
Single

要检查的值。

返回

true 如果 value 为整数,则为 ;否则为 false

实现

注解

此方法正确处理浮点值,因此 2.03.0 返回 true ,同时 2.2 返回并 3.3 返回 false

适用于