Long multiplication: Difference between revisions

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.
 
The problem is that the JavaScript expressionMath.pow expressions become lossy at around 2^54, and Math.pow(2, 64) evaluates to a rounded:
 
18446744073709552000 rather than the full 18446744073709551616
9,659

edits