INumberBase<TSelf>.IsNegative(TSelf) Method
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 a negative real number.
public:
static bool IsNegative(TSelf value);
public static abstract bool IsNegative(TSelf value);
static member IsNegative : 'Self -> bool
Public Shared Function IsNegative (value As TSelf) As Boolean
- value
- TSelf
The value to be checked.
true
if value
represents negative zero or a negative real number; otherwise, false
.
If this type has signed zero, then -0
is also considered negative.
A return value of false
does not imply that IsPositive(TSelf) will return true
. A complex number, a + bi
for non-zero b
, is not positive or negative
Product | Versions |
---|---|
.NET | 7, 8, 9, 10 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: