Single.IsNegative(Single) 方法

定义

确定指定值是否为负值。Determines whether the specified value is negative.

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

参数

f
Single

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

返回

如果为负值,则为 true;否则为 falsetrue if negative, false otherwise.

适用于