OutputVar := MfBigInt.DivRem(dividend, divisor, remainder)
Calculates the quotient of two MfBigInt signed integers and also returns the remainder in an output parameter.
dividend
The dividend.
Can be var integer representation or any type that matches IsIntegerNumber or MfUInt64 or MfBigInt
divisor
The divisor.
Can be var integer representation or any type that matches IsIntegerNumber or MfUInt64 or MfBigInt
remainder
The remainder.
Returns instance of MfBigInt instance as the quotient of the specified numbers.
Throws MfArgumentNullException if dividend or divisor is null.
Throws MfArgumentException if dividend or divisor is unable to be convert to a usable value.
remainder := new MfBigInt()
bigI := MfBigInt.DivRem("7897798244398122076", "770980", remainder)
str := MfString.Format("Result:'{0}', Remainder:'{1}'", bigI.Value, remainder.Value)
MsgBox %str% ; Result:'10243843218239', Remainder:'217856'
remainder := new MfBigInt()
uint := new MfUInt32(348876)
short := new MfInt16(-23567)
bigI := MfBigInt.DivRem(uint, short, remainder)
str := MfString.Format("Result:'{0}', Remainder:'{1}'", bigI.Value, remainder.Value)
MsgBox %str% ; Result:'-14', Remainder:'18938'