INumberBase<TSelf>.IsPositive(TSelf) Methode

Definitie

Bepaalt of een waarde nul of een positief reëel getal vertegenwoordigt.

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

Parameters

value
TSelf

De waarde die moet worden gecontroleerd.

Retouren

true indien value staat voor (positief) nul of een positief reëel getal; falseanders .

Opmerkingen

Als dit type nul heeft ondertekend, wordt dit -0 niet als positief beschouwd, maar +0 wel.

Een retourwaarde van false impliceert niet dat deze IsNegative(TSelf) retourneert true. Een complex getal, a + bi voor niet-nul b, is niet positief of negatief

Van toepassing op