INumberBase<TSelf>.IsNegative(TSelf) Método

Definición

Determina si un valor representa un número real negativo.

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

Parámetros

value
TSelf

Valor que se va a comprobar.

Devoluciones

true si value representa cero negativo o un número real negativo; de lo contrario, false.

Comentarios

Si este tipo tiene signo cero, -0 también se considera negativo.

Un valor devuelto de false no implica que IsPositive(TSelf) devuelva true. Un número complejo, a + bi para un valor distinto de cero b, no es positivo o negativo.

Se aplica a