Subtracts two specified decimal values.
The result of subtracting d2 from d1.
Type Reason OverflowException The result is greater than decimal.MaxValue or less than decimal.MinValue.
The decimal.op_Subtraction(decimal, decimal) method defines the operation of the subtraction operator for decimal values. It enables code such as the following:
code reference: System.Decimal.Operators#21
If the language you're using doesn't support custom operators, call the decimal.Subtract(decimal, decimal) method instead.