語言

Single.IsNegative(Single) 方法

定義

判斷指定值是否為負值。

public:
 static bool IsNegative(float f) = System::Numerics::INumberBase<float>::IsNegative;
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

一個單精度浮點數。

傳回

true 如果是陰性, false 否則。

實作

適用於