Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.8.1
-
None
-
None
Description
NumberUtils.createNumber(Double.valueOf(Double.MIN_VALUE).toString() + "D")
and
NumberUtils.createNumber(Double.valueOf(Double.MIN_VALUE).toString() + "F")
are incorrectly creating BigDecimals.
This is due to a bug:
if (!(d.isInfinite() || d.floatValue() == 0.0D && !allZeros)) {
which should be:
if (!(d.isInfinite() || d.doubleValue() == 0.0D && !allZeros)) {
A patch has been attached.