BigInteger: DivRem

DivRem

Divides this value by the value, returning the quotient and remainding.



 Public Function DivRem(
	  ByVal Value As BigInteger,
	  ByRef remainder As BigInteger ) As BigInteger

Parameters

Value
[ByVal] BigInteger. A numeric representation of the value to divide this instance by.
remainder
[ByRef] BigInteger. A reference to the variable to receive the remainder as a result of the division.

Return Values

BigInteger -  A new instance of BigInteger containing the quotient value.

Remarks

This method accepts a BigInteger, one of VBs numeric values or a string to be parsed.

 Dim b As BigInteger
 Dim r As BigInteger
 Dim q As BigInteger
 Set b = BInt(100)
 Set q = b.DivRem(BInt(40), r)
 Debug.Print q.ToString ' 2
 Debug.Print r.ToString ' 20
 

See Also

Project VBCorLib Overview Class BigInteger Overview BigInteger Properties BigInteger Methods Divide Equals