BigInteger.Abs(BigInteger) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件 BigInteger 的絕對值。
public:
static System::Numerics::BigInteger Abs(System::Numerics::BigInteger value);
public:
static System::Numerics::BigInteger Abs(System::Numerics::BigInteger value) = System::Numerics::INumberBase<System::Numerics::BigInteger>::Abs;
public static System.Numerics.BigInteger Abs(System.Numerics.BigInteger value);
static member Abs : System.Numerics.BigInteger -> System.Numerics.BigInteger
Public Shared Function Abs (value As BigInteger) As BigInteger
參數
- value
- BigInteger
數位。
傳回
的 value絕對值。
實作
備註
數字的絕對值即為未加符號的數字,如下表所示。
value 參數 |
返回值 |
|---|---|
value
>= 0 |
value |
value
< 0 |
value * -1 |
此 Abs 方法等價 Math.Abs 於原始數值型的方法。