INumberBase<TSelf>.IsNegative(TSelf) Metod

Definition

Avgör om ett värde representerar ett negativt reellt tal.

public:
 static bool IsNegative(TSelf value);
public static abstract bool IsNegative(TSelf value);
static member IsNegative : 'Self -> bool
Public Shared Function IsNegative (value As TSelf) As Boolean

Parametrar

value
TSelf

Det värde som ska kontrolleras.

Returer

trueom value representerar negativ noll eller ett negativt reellt tal, annars . false

Kommentarer

Om den här typen har signerat noll anses den -0 också vara negativ.

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