/guava/guava/src/com/google/common/math/BigIntegerMath.java
int nextCmp = x.compareTo( nextPow) ;
int nextCmp = nextPow.compareTo ( x ) ;
approxLog10--; approxPow = approxPow.divide(BigInteger.TEN); approxCmp = approxPow.compareTo(x); } while (approxCmp > 0); } else { BigInteger nextPow = BigInteger.TEN.multiply(approxPow); <extra_id_0> while (nextCmp <= 0) { approxLog10++; approxPow = nextPow; approxCmp = nextCmp; nextPow = BigInteger.TEN.multiply(approxPow); nextCmp = nextPow.compareTo(x);