Fix to use BigDecimal from a double.