Long multiplication: Difference between revisions
Content deleted Content added
Line 2,352: | Line 2,352: | ||
With integer expression inputs at this scale, JavaScript still gives a slightly lossy result, despite the subsequent digit by digit string concatenation approach. |
With integer expression inputs at this scale, JavaScript still gives a slightly lossy result, despite the subsequent digit by digit string concatenation approach. |
||
The problem is that the JavaScript |
The problem is that the JavaScript Math.pow expressions become lossy at around 2^54, and Math.pow(2, 64) evaluates to a rounded: |
||
18446744073709552000 rather than the full 18446744073709551616 |
18446744073709552000 rather than the full 18446744073709551616 |