BigInteger.Sign 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一個數字,表示當前 BigInteger 物體的符號(負、正或零)。
public:
property int Sign { int get(); };
public int Sign { get; }
member this.Sign : int
Public ReadOnly Property Sign As Integer
屬性值
一個表示物體符號 BigInteger 的數字,如下表所示。
| 編號 | 描述 |
|---|---|
| -1 | 這個物件的價值是負的。 |
| 0 | 這個物件的值是 0(零)。 |
| 1 | 這個物體的價值是正的。 |
備註
此 Sign 性質等價 Math.Sign 於原始數值型的方法。