Decimal.IsNegative(Decimal) 方法

定义

确定值是否为负值。

public:
 static bool IsNegative(System::Decimal value) = System::Numerics::INumberBase<System::Decimal>::IsNegative;
public static bool IsNegative(decimal value);
static member IsNegative : decimal -> bool
Public Shared Function IsNegative (value As Decimal) As Boolean

参数

value
Decimal

要检查的值。

返回

true 如果 value 为负数,则为负;否则为 false

实现

注解

返回值 false 并不表示 IsPositive(TSelf) 将返回 true。 对于非零a + bi,复数不是正数或负数 b

适用于