Week 1: How to Count in Binary
In the graded section of this course, you will encounter binary numbers. Counting in binary is easy but can be a bit confusing. This guide will contain resources that may help explain the concept a little bit better (hopefully).
As with the other quizzes, you will have 3 retakes before it locks you out for 8 hours! Make sure to review the content and reread the instructions so you don't miss any steps.
How to count in Binary
If it helps you or anyone else, just think of it as fitting as many numbers as you can into a single larger number.
Going off the Binary Chart, it's: 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1
1 = On
0 = Off
Always start from the LEFT side of the chart first and then gradually working your way to the right.
Let's say we want to find the binary value for 70
Referring to our earlier chart: 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1
We know that:
• 128 is too big to go inside of 70. So this will be 0
• 64 is smaller than 70 and can fit. So we'll use a 1 here.
• 32 + 64 (the number we had a 1 for earlier), is more than 70, so we will have a 0 here.
• 16 + 64 (is still too big to fit into 70), so we will use a 0 here.
• 8 + 64 (is still too big to fit into 70), so we will use a 0 here.
• 4 + 64 (is less than 70 because 4+64 = 68), so we will use a 1 here.
• 2 + 68 (this was the 64+4 from earlier) is exactly 70 and thus "fits", so we will use a 1 here.
• 1+70 (this was the 64+4+2+ from earlier) is bigger than 70 so we will have a 0 here.
Adding out 1s and 0s in the order from left to right (is easier in my opinion), will give you: 01000110
Because any 0 at the beginning is unnecessary just like how you would never say you have $0,100 (to say you have $100), you drop the 0 in front and now you're left with a binary value of 1000110
Additional resources
Hopefully, this guide helped clear some of the confusion surrounding binary numbers. If you need additional help please attend the Tech Sessions (Thursdays 10 am EST and 6 pm EST) or collaborate with your fellow learners in the tech chat via Slack!You can also reach our Techops team via Calendly for a 1:1 session.