Adds two decimal values together.
- d1
- The first addend.
- d2
- The second addend.
A decimal containing the sum of d1 and d2. The scale of the result, before any rounding, is the larger of the scales of d1 and d2. For example, 1.1 + 2.22 gives 3.32, and 2.50 + 1 gives 3.50.
Type Reason OverflowException The sum of d1 and d2 is less than decimal.MinValue or greater than decimal.MaxValue.
Documentation for this section has not yet been entered.
Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0