Long multiplication: Difference between revisions
Content added Content deleted
m (added whitespace to the task's preamble, used superscripts instead of a "hat" to show exponentiation.) |
|||
Line 1:
{{task|Arbitrary precision}}
[[Category:Arithmetic operations]]
;Task:
▲[[Category:Arbitrary precision]] [[Category:Arithmetic operations]]
Explicitly implement [[wp:long multiplication|long multiplication]].
This is one possible approach to arbitrary-precision integer algebra.
For output, display the result of <big><big> 2<sup>64</sup> * 2<sup>64</sup>.</big></big>
The decimal representation of <big><big> 2<sup>64</sup> </big></big> is:
18446744073709551616
The output of <big><big> 2<sup>64</sup> * 2<sup>64</sup> </big></big> is <big><big> 2<sup>128</sup>, </big></big> and is:
340282366920938463463374607431768211456
<br><br>
=={{header|360 Assembly}}==
|