語言

INumberBase<TSelf>.IsInteger(TSelf) 方法

定義

判斷值是否代表整數。

public:
 static bool IsInteger(TSelf value);
public static abstract bool IsInteger(TSelf value);
static member IsInteger : 'Self -> bool
Public Shared Function IsInteger (value As TSelf) As Boolean

參數

value
TSelf

要檢查的值。

傳回

true 若 value 為整數;否則為 false。

備註

此方法正確處理浮點數值,因此 2.0 和 會回傳,而 3.32.2 會回傳 truefalse。3.0

適用於