-
Enhancement
-
Resolution: Fixed
-
P4
-
9
-
None
-
b93
-
generic
-
generic
The V8 team has split out their dtoa code into a separate BSD licensed project (http://code.google.com/p/double-conversion/). I have successfully ported an earlier version of that code to Java as part of Rhino (https://github.com/mozilla/rhino/tree/master/src/org/mozilla/javascript/v8dtoa)
It seems like porting this to Java and submitting a request for inclusion into Nashorn is currently the best way to number-to-string conversion that is both fast and ES-compliant. Since such an inclusion would complicate the open source process we should wait with this until after open sourcing is completed.
- relates to
-
JDK-8141505 floating point parse incorrect on big integer
-
- Resolved
-
-
JDK-8155025 0.001.toFixed(2) should return "0.00" not "0"
-
- Resolved
-
-
JDK-8047366 (1000000000000000128).toString() and (1000000000000000128).toFixed() don't evaluate to expected values.
-
- Resolved
-
-
JDK-8080393 (1000000000000000128).toString() evaluates "1000000000000000130"
-
- Closed
-
-
JDK-8010698 NumberToString should use new Big Number implementation introduced in JAVA7
-
- Closed
-
-
JDK-8142501 nashorn tests failing after recent changes
-
- Closed
-
-
JDK-8065910 Nashorn is too precise
-
- Closed
-