Complex.IsInteger(Complex) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定值是否表示整型值。
public:
static bool IsInteger(System::Numerics::Complex value) = System::Numerics::INumberBase<System::Numerics::Complex>::IsInteger;
public static bool IsInteger(System.Numerics.Complex value);
static member IsInteger : System.Numerics.Complex -> bool
Public Shared Function IsInteger (value As Complex) As Boolean
参数
- value
- Complex
要检查的值。
返回
true 如果 value 为整数,则为 ;否则为 false。
实现
注解
此方法正确处理浮点值,因此 2.0 将 3.0 返回 true ,同时 2.2 返回并 3.3 返回 false。