Click or drag to resize
MathAbs Method (Decimal)
Returns the absolute value of a Decimal number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static decimal Abs(
	decimal value
)

Parameters

value
Type: SystemDecimal
A number that is greater than or equal to MinValue, but less than or equal to MaxValue.

Return Value

Type: Decimal
A decimal number, x, such that 0 ≤ x ≤MaxValue.
See Also