The Student Room Group

How to add Binary

I know how to add easy binary but when you have FOUR 1's in a column of addition... What do you do? Can't seem to find a solution! Help please!
e.g.
01101101
00100111
00101101
Original post by Someboady
I know how to add easy binary but when you have FOUR 1's in a column of addition... What do you do? Can't seem to find a solution! Help please!
e.g.
01101101
00100111
00101101


well you can do A+B+C in one go (with a lot of carry digits to handle)

or do (A+B) and then add C to the result... which is IMO more manageable and less error prone.
Reply 2
Original post by Joinedup
well you can do A+B+C in one go (with a lot of carry digits to handle)

or do (A+B) and then add C to the result... which is IMO more manageable and less error prone.


Ah i didnt think of that... if I tried the first method, how would I add the four ones in that column?
Original post by Someboady
I know how to add easy binary but when you have FOUR 1's in a column of addition... What do you do? Can't seem to find a solution! Help please!
e.g.
01101101
00100111
00101101


Just separate the numbers, If you know how to add 2 number you'll be fine.

01101101+
00100111 then just add 00101101 to the product.
Reply 4
Original post by Stephen Kinsey
Just separate the numbers, If you know how to add 2 number you'll be fine.

01101101+
00100111 then just add 00101101 to the product.


Okay, but just out of curiosity, what would you do if you had to add all three together and you had 4 1's in a column?
Original post by Someboady
Okay, but just out of curiosity, what would you do if you had to add all three together and you had 4 1's in a column?


Well it would loook like this

0001
0001 +
0001
0001
---------
0100

So really just apply that to whatever situation you came across. If you had to extend it by a bit then you would just do so.

Quick Reply

Latest