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,在 3.0 和 时2.23.3false返回 true

适用于