Int32.IsNegative(Int32) 方法

定義

判斷值是否為負值。

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 。 非零 b 的複數 a + bi 不是正數或負數

適用於