INumberBase<TSelf>.IsPositive(TSelf) Method

Definition

Determines if a value represents zero or a positive real number.

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

The value to be checked.

Returns

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

Remarks

If this type has signed zero, then -0 is not considered positive, but +0 is.

A return value of false does not imply that IsNegative(TSelf) will return true. A complex number, a + bi for non-zero b, is not positive or negative

Applies to