Use BigDecimal to round before comparing doubles