| BigIntegerStatic: DivRem |
Divides one BigInteger value by another, returning both the quotient and remainder.
Public Function DivRem( ByVal dividend As BigInteger, ByVal divisor As BigInteger, ByRef remainder As BigInteger ) As BigInteger
Values of Nothing will be treated as zero.
Dim b As BigInteger Dim r As BigInteger Dim q As BigInteger Set b = BInt(100) Set q = BigInteger.DivRem(b, BInt(40), r) Debug.Print q.ToString ' 2 Debug.Print r.ToString ' 20
Project VBCorLib Overview Class BigIntegerStatic Overview BigIntegerStatic Properties BigIntegerStatic Methods Divide Equals