BigInteger.Sign Свойство
Определение
Получает число, указывающее знак (минус, плюс или нуль) текущего объекта BigInteger.Gets a number that indicates the sign (negative, positive, or zero) of the current BigInteger object.
public:
property int Sign { int get(); };
public int Sign { get; }
member this.Sign : int
Public ReadOnly Property Sign As Integer
Значение свойства
Число, которое указывает знак объекта BigInteger, как показано в следующей таблице.A number that indicates the sign of the BigInteger object, as shown in the following table.
ЧислоNumber | ОписаниеDescription |
---|---|
-1-1 | Этот объект имеет отрицательное значение.The value of this object is negative. |
00 | Этот объект имеет значение 0 (нуль).The value of this object is 0 (zero). |
11 | Этот объект имеет положительное значение.The value of this object is positive. |
Комментарии
Свойство Sign эквивалентно методу Math.Sign для числовых типов-примитивов.The Sign property is equivalent to the Math.Sign method for the primitive numeric types.