- deathnote00Straw Hat Pirate
- Posts : 34
Points : 101700
Coins : 3864
Join date : 2013-04-29
Warning Level :
Programming Tutorial: How to Multiply Binary Numbers
Thu May 02, 2013 10:16 am
Here Is my 3rd Tutorial It How To Multiply a Binary Number so let start multiplying a binary number is easy as pie it just very similar in multiplying a whole number as for it's rule here they are:
1x1=1
1x0=0
0x1=0
after multiplying the numbers just add them to get the final product
1x1=1
1x0=0
0x1=0
after multiplying the numbers just add them to get the final product
- Code:
example:
1 0 1 1 (A)
× 1 0 1 0 (B)
---------
0 0 0 0 ← Corresponds to the rightmost 'zero' in B
+ 1 0 1 1 ← Corresponds to the next 'one' in B
+ 0 0 0 0
+ 1 0 1 1
---------------
= 1 1 0 1 1 1 0
Permissions in this forum:
You cannot reply to topics in this forum