Bridge

Decimal..::..Modulus Operator

Returns the remainder resulting from dividing two specified Decimal values.

Namespace:  System
Assembly:  Bridge (in Bridge.dll)

Syntax


public static decimal operator %(
	decimal d1,
	decimal d2
)
Public Shared Operator Mod ( _
	d1 As Decimal, _
	d2 As Decimal _
) As Decimal
public:
static Decimal^ operator %(
	Decimal^ d1, 
	Decimal^ d2
)

Parameters

d1
Type: System..::..Decimal
The dividend.
d2
Type: System..::..Decimal
The divisor.

Return Value

The remainder resulting from dividing d1 by d2.

Exceptions


ExceptionCondition
System..::..DivideByZeroExceptiond2 is zero.
System..::..OverflowExceptionThe return value is less than MinValue or greater than MaxValue.