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 trialAbdulrahman Sharif
553 PointsWhat number is represented by the byte 00000111?
how to know what the byte represent
3 Answers
Jennifer Nordell
Treehouse TeacherHi there! I drew up a chart and posted it on Treehouse in this thread not long ago. Take a look and see if it helps clarify things! Good luck!
Corey Johnson
Courses Plus Student 10,192 PointsIf you need any more assistance with binary, please let me know Abdulrahman. The chart Jennifer posted really helps. Once you have the positions down, it is pretty easy to convert binary to decimal and vice versa.
Morgan Faye
1,058 PointsHi there,
The answer is 7. It may be confusing at first but if you look at the digits separately it makes it much easier.
Reading from right to left and disregarding the zeros the first digit is 1, the second is 2 and the third is 4. Simply add these together and you get 7.
Another example would be 01001101 which would equal 77. Reading from right the left again and disregarding the zeros, the first is 1, the second is 4, the third is 8 and the forth is 64.