Half.IsInteger(Half) 方法

定义

确定值是否表示整数值。

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

参数

value
Half

返回

Boolean

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

实现

注解

此方法正确处理浮点值,因此2.0``3.0,在返回true和返回false2.2``3.3返回。

适用于