Bewerken

Delen via


INumberBase<TSelf>.IsNegative(TSelf) Method

Definition

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

Parameters

value
TSelf

The value to be checked.

Returns

true if value represents negative zero or a negative real number; otherwise, false.

Remarks

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

Applies to