共用方式為


BigInteger.Sign 屬性

定義

會得到一個數字,表示當前 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 於原始數值型的方法。

適用於