BigInteger.compareMagnitude

Compares the magnitude array of this BigInteger with the specified BigInteger's. This is the version of compareTo ignoring sign.

@param val BigInteger whose magnitude array to be compared. @return -1, 0 or 1 as this magnitude array is less than, equal to or greater than the magnitude aray for the specified BigInteger's.

  1. int compareMagnitude(BigInteger val)
    class BigInteger
    final
    int
    compareMagnitude
  2. int compareMagnitude(long val)

Meta