Single.IsNegative(Single) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷指定值是否為負值。
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 否則。