Single.IsNegative(Single) 方法

定義

判斷指定的值是否為負數。

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

單精確度浮點數。

傳回

Boolean

如果為負數,則為 true;否則為 false

適用於