Windows apps
Collapse the table of content
Expand the table of content
Information
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%)

 

Calculates the quotient of two 64-bit signed integers and also returns the remainder in an output parameter.

Namespace:   System
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.

Return Value

Type: System::Int64

The quotient of the specified numbers.

Exception Condition
DivideByZeroException

b is zero.

The remainder is calculated by using the modulus operation.

The following example demonstrates the DivRem(Int64, Int64, Int64%) method.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft