divideAndRemainder

abstract fun divideAndRemainder(other: BigInteger): Array<out BigInteger>

Returns an array of two BigIntegers containing (this / val) followed by (this % val).

Return

an array of two BigIntegers: the quotient (this / val) is the initial element, and the remainder (this % val) is the final element.

Parameters

other

value by which this BigInteger is to be divided, and the remainder computed.

Throws

if other is zero.


open fun divideAndRemainder(other: Int): Array<out BigInteger>
open fun divideAndRemainder(other: Long): Array<out BigInteger>