INumberBase<TSelf>.IsPositive(TSelf) Methode

Definition

Bestimmt, ob ein Wert null oder eine positive reelle Zahl darstellt.

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

Parameter

value
TSelf

Der zu überprüfende Wert.

Gibt zurück

true if value represents (positive) zero or a positive real number; otherwise, false.

Hinweise

Wenn dieser Typ null signiert hat, wird er -0 nicht als positiv betrachtet, sondern +0 ist.

Ein Rückgabewert von false bedeutet nicht, dass IsNegative(TSelf) zurückgegeben truewird. Eine komplexe Zahl ist a + bi für ungleich Null bnicht positiv oder negativ.

Gilt für: