NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Decimal.Mod

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;

Parameters

d1
The first Decimal (the dividend).
d2
The second Decimal (the divisor).

Return Value

The result's of evaluating the two Decimal values.

Exceptions

Exception Type Condition
DivideByZeroException If the divisor is zero.
OverflowException If the result is too large to represent as a Decimal.

Remarks

The Mod method divides two Decimal values and returns the remainder.

See Also

Decimal Structure | Decimal Members | System Namespace