INumberBase<TSelf>.IsPositive(TSelf) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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