Math::DivRem Method (Int32, Int32, Int32%)
.NET Framework (current version)
Calculates the quotient of two 32-bit signed integers and also returns the remainder in an output parameter.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- a
-
Type:
System::Int32
The dividend.
- b
-
Type:
System::Int32
The divisor.
- result
-
Type:
System::Int32%
The remainder.
| Exception | Condition |
|---|---|
| DivideByZeroException | b is zero. |
The remainder is calculated by using the modulus operation.
.NET Framework
Available since 1.1
Available since 1.1
Show: