NFloat.IsInteger(NFloat) 方法

定義

判斷值是否代表整數。

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

參數

value
NFloat

要檢查的值。

傳回

true 如果 value 是整數,則為 ,否則為 false

實作

備註

這個方法會正確處理浮點值,因此 2.0 會傳回 ,同時2.23.3 會傳回 falsetrue3.0

適用於