Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Digital Literacy Computer Basics Computer Basics Binary

I am not understanding the binary count.

I don't understand the binary count positioning.

2 Answers

Carlos Federico Puebla Larregle
Carlos Federico Puebla Larregle
21,074 Points

I'll try to explain it. First you have to remember that in binary you only have 0 and 1, so if you have to add two binary numbers, lets say: 0 + 1 = 1 But if you try to add 1 + 1 = 10 Why in hell? you might say, and the answer would be, because we don't have the number "2", and the number that comes after 1 in binary is 10. So if you are going to try to add 1 + 1 + 1 = 11

1 + 1 = 10 and 10 + 1 = 11

Here are a few binary numbers:

000  -> 0
001  -> 1
010  -> 2
011  -> 3
100  -> 4
101  -> 5
110  -> 6
111  -> 7

So again but this time seeing that table:

 1 + 1 = 10
1 + 1 + 1 + 1 = 100

And so on..

I hope that helps you a little bit.

p.s.: Oh, and the position of the number means that it will mean a different value depending were is located:

For example in decimal numbers:

10
100
10000

They are all ones follow by zeros, but in the first example the number one is representing the number ten, and in the second the number one is representing the number one hundred, and so on.

The same thing happens in binary.

1101

In that binary number you have four "positions"

2 ^ 3 + 2 ^ 2 + 2 ^ 1 = 8 + 4 + 1 = 13