Single.IsFinite(Single) 方法

定义

确定指定值是否为有限(零、次正规数或正规数)。Determines whether the specified value is finite (zero, subnormal or normal).

public:
 static bool IsFinite(float f);
public static bool IsFinite (float f);
static member IsFinite : single -> bool
Public Shared Function IsFinite (f As Single) As Boolean

参数

f
Single

单精度浮点数。A single-precision floating-point number.

返回

如果指定值是有限的(零、次正规数或正规数),则为 true;否则为 falsetrue if the specified value is finite (zero, subnormal or normal); otherwise, false.

适用于