Fixed deprecation warning for BigDecimal.apply(Float)