sqrtAndRemainder

abstract fun sqrtAndRemainder(): Array<out BigInteger>

Returns an array of two BigIntegers containing the integer square root s of this and its remainder this - s*s, respectively.

Return

an array of two BigIntegers with the integer square root at offset 0 and the remainder at offset 1

Since

9

See also

.sqrt

Throws

if this is negative. (The square root of a negative integer other is (i * sqrt(-val)) where i is the imaginary unit and is equal to sqrt(-1).)