jparse icon indicating copy to clipboard operation
jparse copied to clipboard

Wrong scalar value returned for number with E-notation

Open NaldoRay opened this issue 6 months ago • 1 comments

jparse version: 1.2.3

ParseDouble.parseDouble(char[], int, int) returns wrong result for number with E-notation. Example value 2.52734104E8 is parsed as 252734104.00000006 or 2.5273410400000006E8 (there's extra .00000006).

The bug makes the value returned by method NumberNode#value(), and ScalarNode#doubleValue() to be incorrect.

NaldoRay avatar Aug 28 '24 07:08 NaldoRay