This documentation is archived and is not being maintained.
Math::DivRem Method (Int64, Int64, Int64%)
Visual Studio 2010
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. |
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: