import java.math.RoundingMode println new BigDecimal( ((int) Math.ceil(0.30*20)) / 20d).setScale(2, RoundingMode.HALF_UP)