Complex.IsEvenInteger(Complex) 方法

定义

确定值是否表示偶数。

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

参数

value
Complex

要检查的值。

返回

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

实现

注解

此方法正确处理浮点值,因此2.0返回时2.2返回truefalse

返回值 false 并不表示 IsOddInteger(TSelf) 将返回 true。 例如 3.3,具有小数部分的数字甚至不是偶数或奇数。

适用于