The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Math::DivRem Method (Int64, Int64, Int64%)
.NET Framework (current version)
Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output parameter.
Assembly: mscorlib (in mscorlib.dll)
public: static long long DivRem( long long a, long long b, [OutAttribute] long long% result )
Parameters
- a
-
Type:
System::Int64
The dividend.
- b
-
Type:
System::Int64
The divisor.
- result
-
Type:
System::Int64%
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: