Divides the value of one decimal by another.
- d1
- The dividend.
- d2
- The divisor.
A decimal containing the result of dividing d1 by d2. The scale of the result, before any rounding, is the closest scale to the preferred scale which will preserve a result equal to the exact result. The preferred scale is the scale of d1 less the scale of d2. For example, 2.20 / 2 gives 1.10.
Type Reason DivideByZeroException d2 is zero. OverflowException The result 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