Commit f7341b4
authored
Replace number formatting operations on Number
This replaces the implementations of toExponential, toFixed,
and toPrecision on the Number class with new implementations that use
a combination of BigDecimal and the new double formatting code.1 parent f7ad83e commit f7341b4
10 files changed
Lines changed: 200471 additions & 924 deletions
File tree
- benchmarks/src/jmh/java/org/mozilla/javascript/benchmarks
- rhino/src
- main/java/org/mozilla/javascript
- dtoa
- test
- java/org/mozilla/javascript/tests
- resources/org/mozilla/javascript/tests
- tests/testsrc
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
37 | 63 | | |
0 commit comments