Kertolaskun Säännöt
0 0 1 1
x 0 x 1 x 0 x 1
0 0 0 1
Esim.
10 ab
x 11 x cd
10 ad bd (a AND d) (b AND d)
+ 10 + ac bc (a AND c) (b AND c)
110
Lataa 2 bitin kertolasku -appletti
Desimaalilukujen kertolasku
123
x 456
=====
738 (this is 123 x 6)
615 (this is 123 x 5, shifted one position to the left)
+ 492 (this is 123 x 4, shifted two positions to the left)
=====
56088
Binäärilukujen kertolasku samalla tavalla
1011 (this is 11 in decimal)
x 1110 (this is 14 in decimal)
======
0000 (this is 1011 x 0)
1011 (this is 1011 x 1, shifted one position to the left)
1011 (this is 1011 x 1, shifted two positions to the left)
+ 1011 (this is 1011 x 1, shifted three positions to the left)
=========
10011010 (this is 154 in decimal)
Lataa 4 bitin kertolasku -appletti
Lataa "Kerto moduuli" -appletti