Anonymous user
Long multiplication: Difference between revisions
→{{header|Smalltalk}}
Line 5,278:
"/ as the language does not specify, how many bits are used to represent
"/ SmallIntegers, and when the VM uses LargeInts.
"/ Lets
"/ and assume, we run on a non-binary 2-digit decimal machine (smile).
"/
"/ (running on a decimal machine from the 1940's)
"/ (smile: remember Knuth's MIX machine?)
"/ I assume we have a multiplication unit, which can multiply two 2-digit words to a 4 digit word.
"/ (if that is too much, we can easily go back to 1 digit, or 1 bit).
"/
"/ Not even as didactic example.
"/ NOONE WOULD EVER DO SUCH A STUPID THING
|