Binary Addition: 11 + 11 - What's the Rule?

  • Thread starter Thread starter kolleamm
  • Start date Start date
  • Tags Tags
    Binary
Click For Summary
The discussion focuses on the process of carrying over in addition across different number bases, particularly binary and decimal systems. In binary addition, when adding two binary numbers like 11b + 11b, the rule is that 1 + 1 equals 10, which requires carrying over to the next higher position. This is similar to decimal addition, where 5 + 5 results in a carry when the sum exceeds 9. The conversation emphasizes the importance of explicitly writing out calculations, especially in non-decimal bases, to avoid confusion and ensure accuracy. It also highlights that the fundamental addition rules in binary are straightforward due to the limited digits, making it easier to manage carries. Converting between bases can serve as a verification method for results.
kolleamm
Messages
476
Reaction score
44
This one confused me a little bit. You have to carry the one and put it into the next 1 + 1, what would be the rule in this situation?

Not sure if this ever happens in decimal addition.
 
Technology news on Phys.org
Yes, it happens all the time. You carry the 1 to the higher position as you say and then you have 1+1+1 = 11b in that position. So the result is 11b+11b=110b.
 
In decimal, what's 55+55? 5+5=10, so write zero and carry the one. 5+5+1=11, so write one and carry the 1.

Same in binary, except 1+1=10. So to do 11+11 note that 1+1=10 so write zero and carry the one. 1+1+1=11, so write one and carry the one.

I find it helpful when working with bases other than ten to explicitly write out long addition/multiplication/division like I'm back in primary school. The same mindless drills work (we call them algorithms because it sounds better), just with different representations of the numbers.
 
  • Like
Likes FactChecker
And, of course, you can always convert to and from base 10 to check your answer!
 
The addition "facts" in binary addition are pretty simple, as there are only two digits.
0 + 0 = 0 - no carry
0 + 1 = 1 - no carry
1 + 0 = 1 - no carry
1 + 1 = 10 - carry to the next position on the left
(All numbers shown are binary (base-2) numbers.)
 
Also 11b+11b=11b⋅2D=11b⋅10b=11b shift left 1.
 
  • Like
Likes FactChecker
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 7 ·
Replies
7
Views
2K
Replies
1
Views
2K
Replies
13
Views
3K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
2K