Returns the remainder from dividing two Decimal values.
[Visual Basic] Public Shared Function Mod( _ ByVal d1 As Decimal, _ ByVal d2 As Decimal _ ) As Decimal [C#] public static Decimal Mod( Decimal d1, Decimal d2 ); [C++] public: static Decimal Mod( Decimal d1, Decimal d2 ); [JScript] public static function Mod( d1 : Decimal, d2 : Decimal ) : Decimal;
The result's of evaluating the two Decimal values.
Exception Type | Condition |
---|---|
DivideByZeroException | If the divisor is zero. |
OverflowException | If the result is too large to represent as a Decimal. |
The Mod method divides two Decimal values and returns the remainder.