Int32.IsNegative(Int32) Metoda

Definicja

Określa, czy wartość jest ujemna.

public:
 static bool IsNegative(int value) = System::Numerics::INumberBase<int>::IsNegative;
public static bool IsNegative (int value);
static member IsNegative : int -> bool
Public Shared Function IsNegative (value As Integer) As Boolean

Parametry

value
Int32

Zwraca

Boolean

true jeśli value wartość jest ujemna; w przeciwnym razie wartość false.

Implementuje

Uwagi

Wartość zwracana false nie oznacza, że IsPositive(TSelf) funkcja zwróci wartość true. Liczba zespolona w a + bi przypadku wartości innej niż zero bnie jest dodatnia lub ujemna

Dotyczy