List of usage examples for com.google.common.math BigIntegerMath log10
@GwtIncompatible("TODO") @SuppressWarnings("fallthrough") public static int log10(BigInteger x, RoundingMode mode)
From source file:org.optaplanner.examples.common.persistence.AbstractSolutionImporter.java
public static String getFlooredPossibleSolutionSize(BigInteger possibleSolutionSize) { if (possibleSolutionSize.compareTo(BigInteger.valueOf(1000L)) < 0) { return possibleSolutionSize.toString(); }/*w ww . ja v a 2s . co m*/ return "10^" + (BigIntegerMath.log10(possibleSolutionSize, RoundingMode.FLOOR)); }