DecimalMath.Abs Method

Returns the absolute value of a System.Decimal number.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
public static decimal Abs(
	decimal value
)

Parameters

value  Decimal
A number in the range System.Decimal.MinValue≤ value ≤System.Decimal.MaxValue.

Return Value

Decimal
A System.Decimal, x, such that 0 ≤ x ≤System.Decimal.MaxValue.

See Also