This documentation is archived and is not being maintained.

BigInteger::Division Operator

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.

ExceptionCondition
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.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, 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: