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 , wenn value für (positive) Null oder eine positive reelle Zahl steht, falseandernfalls .

Hinweise

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

Ein Rückgabewert von false bedeutet nicht, dass IsNegative(TSelf) zurückgibt true. Eine komplexe Zahl a + bi für ungleich 0 bist nicht positiv oder negativ.

Gilt für: