BigInteger.DivRem Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.0

Overload List

DivRem(BigInteger, BigInteger)Computes the quotient and remainder of two values.
DivRem(BigInteger, BigInteger, BigInteger) Computes the quotient and remainder of two BigInteger numbers.

DivRem(BigInteger, BigInteger)

Computes the quotient and remainder of two values.
C#
public static (BigInteger Quotient, BigInteger Remainder) DivRem(
	BigInteger left,
	BigInteger right
)

Parameters

left  BigInteger
The value which right divides.
right  BigInteger
The value which divides left.

Return Value

ValueTuple<BigInteger, BigInteger>
The quotient and remainder of left divided by right.

Implements

IBinaryInteger<TSelf>.DivRem(TSelf, TSelf)

DivRem(BigInteger, BigInteger, BigInteger)

Computes the quotient and remainder of two BigInteger numbers.
C#
public static BigInteger DivRem(
	BigInteger left,
	BigInteger right,
	out BigInteger r
)

Parameters

left  BigInteger
The dividend.
right  BigInteger
The divisor.
r  BigInteger
On return, the remainder.

Return Value

BigInteger
The quotient of left and right.

See Also