Single.IsSubnormal(Single) 方法
本文内容
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定指定的值是否为非正常值。
public:
static bool IsSubnormal(float f) = System::Numerics::INumberBase<float>::IsSubnormal;
public:
static bool IsSubnormal(float f);
public static bool IsSubnormal(float f);
static member IsSubnormal : single -> bool
Public Shared Function IsSubnormal (f As Single) As Boolean
- f
- Single
单精度浮点数。
如果 f
不正常,则为 true
;否则 false
。
这有效地检查值不是 NaN,不是无限的,不是正常值,也不是零。
适用于
产品 | 版本 |
---|---|
.NET | Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Standard | 2.1 |