Complex.IsInteger(Complex) 方法

定義

判斷值是否代表整數值。

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.03.0傳回 ,同時2.2會傳回 true ,而且3.3會傳回 false

適用於