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.

BigInteger::Division Operator (BigInteger, BigInteger)

 
equivalentCodeEntityM:System.Numerics.BigInteger.Divide(System.Numerics.BigInteger,System.Numerics.BigInteger)

Divides a specified BigInteger value by another specified BigInteger value by using integer division.

Namespace:   System.Numerics
Assembly:  System.Numerics (in System.Numerics.dll)

public:
static BigInteger operator /(
	BigInteger dividend,
	BigInteger divisor
)

Parameters

dividend
Type: System.Numerics::BigInteger

The value to be divided.

divisor
Type: System.Numerics::BigInteger

The value to divide by.

Return Value

Type: System.Numerics::BigInteger

The integral result of the division.

Exception Condition
DivideByZeroException

divisor is 0 (zero).

The Division method defines the division operation for BigInteger values. It enables code such as the following:

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

Languages that do not support custom operators and operator overloading can call the Divide method instead.

The following example creates an array of BigInteger values. It then uses each element as the quotient in a division operation that uses the Divide method, the division operator (/), and the DivRem method.

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

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft