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