Decimal.IsNegative(Decimal) Metod

Definition

Avgör om ett värde är negativt.

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

Parametrar

value
Decimal

Det värde som ska kontrolleras.

Returer

true om value är negativ, annars false.

Implementeringar

Kommentarer

Ett returvärde för false innebär inte att returnera IsPositive(TSelf)true. Ett komplext tal, a + bi för icke-noll b, är inte positivt eller negativt

Gäller för