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);
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 基元数值类型的方法。