Int32.IsNegative(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷值是否為負值。
public:
static bool IsNegative(int value) = System::Numerics::INumberBase<int>::IsNegative;
public static bool IsNegative(int value);
static member IsNegative : int -> bool
Public Shared Function IsNegative (value As Integer) As Boolean
參數
- value
- Int32
要檢查的值。
傳回
true 若為 value 負;否則,為 false。
實作
備註
返回值 false 不代表會 IsPositive(TSelf) 返回 true。 複數 a + bi ,對於非零 b,既非正也非負數