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