compareTo

abstract operator override fun compareTo(other: BigInteger): Int

Compares this BigInteger with the specified BigInteger. This method is provided in preference to individual methods for each of the six boolean comparison operators (<, ==, >, >=, !=, <=). The suggested idiom for performing these comparisons is: (x.compareTo(y)<op>0), where <op> is one of the six comparison operators.

Return

-1, 0 or 1 as this BigInteger is numerically less than, equal to, or greater than other.

Parameters

other

BigInteger to which this BigInteger is to be compared.