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。 复数 a + bi (对于非零 b)不为正数或负数

适用于