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
Josiah Edem Blood-Dzraku
326 Pointsplease what's the most simple way to explain binary reading for me to understand; i still don't get it. please help me..
Please help me understand binary reading in the most simpliest form... I'm probably looking at things from the wrong angle; please help me see it like you do...
2 Answers
Falk Schwiefert
8,706 PointsLet me try. :)
Lets take a normal decimal number. Lets say 205. If you take that number apart based on the 10 (decimal) factor you have
100s | 10s | 1s
2 | 0 | 5
Binary is the same thing based on a factor of 2. So your columns look like this:
16s | 8s | 4s | 2s | 1s
Now lets take some numbers so it makes more sense. Basically if you have a decimal number you break it apart from left to right on that scale and if you have a binary number you put it back together from right to left.
Examples:
16s | 8s | 4s | 2s | 1s
----------------------
decimal number: 3 | 1 | 1 (3 = 4s*0 + 2s*1 + 1s*1) decimal number: 7 | 1 | 1 | 1 (7 = 8s*0 + 4s*1 + 2s*1 + 1s*1) decimal number: 13 1 | 1 | 0 | 1 (13 = 16s*0 + 8s*1 + 4s*1 + 2s*0 + 1s*1)
Think of it in a yes = 1 and no = 0 way (that's the way the computer thinks):
Can you fit 16 into 13? no / 0 Can you fit 8 into 13? yes / 1 (now you subtract 8 from 13. The rest is 5) Can you fit 4 into 5? yes / 1 (now you subtract 4 from 5. The rest is 1) Can you fit 2 into 1? no / 0 (no need to subtract anything since it doesn't work) Can you fit 1 into 1? yes / 1 (now you subtract 1 from 1. The rest is 0. Full stop)
Does that make sense?
If you want to put a binary number together you do the exact opposite: (Bin number 11001). Start at the right side.
Is there a 1 in your number? Yes / 1 (Remember: 1) Is there a 2 in your number? No / 0 Is there a 4 in your number? No / 0 Is there an 8 in your number? Yes / 1 (8+1 = 9) Is there a 16 in your number? Yes / 1 (16 + 9 = 25)
I hope that helps. Here is another great article (although a little dry for my taste): http://www.math.grin.edu/~rebelsky/Courses/152/97F/Readings/student-binary#1011-a
bothxp
16,510 PointsHave you watched the Binary video that is part of the Digital Literacy - Computer Basics course?
I thought that it does quite a good job of explaining it.