Int16.IsNegative(Int16) Metod

Definition

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

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

Parametrar

value
Int16

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