Mono Class Library: System.Decimal Overview | Members

System.Decimal Modulus Operator

Divides one decimal value by another decimal and returns the remainder.

public static decimal operator% (decimal d1, decimal d2)

Parameters

d1
The dividend.
d2
The divisor.

Returns

The value returned by decimal.Remainder(decimal, decimal) (d1, d2).

Exceptions

TypeReason
DivideByZeroExceptiond2 is zero.
OverflowExceptiond1 divided by d2 is greater than decimal.MaxValue or less than decimal.MinValue.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0