Description:
The library currently fails to correctly parse numbers using scientific notation when they contain a sign or are immediately followed by digits. For example, the expression 1e-7 is incorrectly lexed as:
- The number
1
- The constant
e (Euler's number)
- The subtraction operator
-
- The number
7
This results in a calculation of 1 * e - 7 instead of 10^-7. This behavior also affects capital E and positive exponents (e.g., 1e+7).
Javascript uses scientific notation for numbers smaller than 0.000001, which means native numbers created by javascript smaller than 1e-6 do not work with this package.
Description:
The library currently fails to correctly parse numbers using scientific notation when they contain a sign or are immediately followed by digits. For example, the expression
1e-7is incorrectly lexed as:1e(Euler's number)-7This results in a calculation of
1 * e - 7instead of10^-7. This behavior also affects capitalEand positive exponents (e.g.,1e+7).Javascript uses scientific notation for numbers smaller than
0.000001, which means native numbers created by javascript smaller than1e-6do not work with this package.