code: public static BigDecimal log10(BigDecimal x, MathContext mathContext) {
  		checkMathContext(mathContext);
  		MathContext mc = new MathContext(mathContext.getPrecision() + 2, mathContext.getRoundingMode());
  
  		BigDecimal result = log(x, mc).divide(logTen(mc), mc);
  		return round(result, mathContext);
  	}
docs: Calculates the logarithm of {@link BigDecimal} x to the base 10.
  
  @param x the {@link BigDecimal} to calculate the logarithm base 10 for
  @param mathContext the {@link MathContext} used for the result
  @return the calculated natural logarithm {@link BigDecimal} to the base 10 with the precision specified in the <code>mathContext</code>
  @throws ArithmeticException if x &lt;= 0
  @throws UnsupportedOperationException if the {@link MathContext} has unlimited precision