Computes the remainder after dividing two decimal values.
- d1
- The dividend.
- d2
- The divisor.
- d2
- Documentation for this section has not yet been entered.
The remainder after dividing d1 by d2 to give an integer result. The sign of the result, if non-zero, is the same as the sign of d1, and the scale of the result is the larger of the scales of d1 and d2.
For example, -10 % 3 gives -1, and 3.6 % 1.3 gives 1.0 (where % indicates the remainder operation).
Type Reason DivideByZeroException d2 is zero. OverflowException d1 divided by d2 is greater than decimal.MaxValue or less than decimal.MinValue.
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