Int32.IsPositive(Int32) Metod

Definition

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

public:
 static bool IsPositive(int value) = System::Numerics::INumberBase<int>::IsPositive;
public static bool IsPositive(int value);
static member IsPositive : int -> bool
Public Shared Function IsPositive (value As Integer) As Boolean

Parametrar

value
Int32

Det värde som ska kontrolleras.

Returer

true om value är positiv, annars false.

Implementeringar

Kommentarer

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

Gäller för