Long multiplication: Difference between revisions
Content added Content deleted
Line 2,356: | Line 2,356: | ||
18446744073709552000 rather than the full 18446744073709551616 |
18446744073709552000 rather than the full 18446744073709551616 |
||
This means that to handle larger inputs, the multiplication function needs to have string parameters: |
|||
⚫ | |||
⚫ | |||
⚫ | |||
var |
var a1 = strNum1.split("").reverse(); |
||
⚫ | |||
var aResult = new Array; |
var aResult = new Array; |
||
Line 2,377: | Line 2,379: | ||
mult( |
mult('18446744073709551616', '18446744073709551616')</lang> |
||
{{Out}} |
{{Out}} |