Decimal..::..Remainder Method
Computes the remainder after dividing two Decimal values.
Namespace:
SystemAssembly: Bridge (in Bridge.dll)
Syntax
[TemplateAttribute] public static decimal Remainder( decimal d1, decimal d2 )
<TemplateAttribute> _ Public Shared Function Remainder ( _ d1 As Decimal, _ d2 As Decimal _ ) As Decimal
[TemplateAttribute] public: static Decimal^ Remainder( Decimal^ d1, Decimal^ d2 )
Return Value
The remainder after dividing d1 by d2.Exceptions
Exception | Condition |
---|---|
System..::..DivideByZeroException | d2 is zero. |
System..::..OverflowException | The return value is less than MinValue or greater than MaxValue. |