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 trialGrace Frimpong
312 PointsI don't understand binary number
00000001000
2 Answers
Podrig Leoghain
5,094 PointsA good way of thinking about binary systems is by thinking about an abacus that has only one bead on each row.
- So, counting from the right we start with 00000000 which is 0,
- then 00000001 which is 1.
- Now we put the second row's bead 'on' and switch the first row's bead back to 'off' = 00000010. This = 2.
- Flip the first bead back on to count to 4 (00000011)
- Same idea as 1, we switch on the next row, and switch off all other rows (this is like going from, say, 999 to 1000 in decimal. You flip on the 1 in the thousands column, but reset all other columns to 0). And so on...
A great resource is Harvard's CS50 lecture 0 which is on youtube. David J Malan is, out of all lecturer's I've seen on whatever subject, absolutely the best at explaining things simply whilst keeping it interesting.
Grace Frimpong
312 Pointsthanks
Podrig Leoghain
5,094 PointsAbsolutely delighted to be of help!