The problem
new BigDecimal(Double.NEGATIVE_INFINITY) throws a NumberFormatException. As the Javadoc of BigDecimal says:NumberFormatException - if val is infinite or NaN.
Also not working:
- BigDecimal.valueof(Double.NEGATIVE_INFINITY)
- BigDecimal.valueof(""+Double.NEGATIVE_INFINITY)
No comments:
Post a Comment