Int64.IsNegative(Int64) Metod

Definition

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

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

Parametrar

value
Int64

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