@Test
public void stripTrailingZeroes() {

    Expression expr = new Expression();
    expr.numbers.add(new BigDecimal("1"));
    expr.operators.add(Expression.Operator.DIVIDE);
    expr.numbers.add(new BigDecimal("8"));
    BigDecimal result = expr.evaluate(false, 8, RoundingMode.HALF_UP);
    assertEquals(result, new BigDecimal("0.125"));
}