Decimal.Abs(Decimal) 方法

定义

计算值的绝对值。

public:
 static System::Decimal Abs(System::Decimal value) = System::Numerics::INumberBase<System::Decimal>::Abs;
public static decimal Abs(decimal value);
static member Abs : decimal -> decimal
Public Shared Function Abs (value As Decimal) As Decimal

参数

value
Decimal

要为其获取其绝对值的值。

返回

的绝对值 value

实现

适用于