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 trialChase McGhee
2,579 PointsWhat number is represented byt the byte 00000111
j
2 Answers
Bianca Power
8,094 PointsThe answer's 7 :)
1 + 2 + 4 = 7. This might be useful: http://www.instructables.com/id/Learn-Binary-The-easy-way-01000001-00000001/
Mark Casavantes
Courses Plus Student 13,401 PointsHi Chase,
In our base ten number system each place value increases by a power of ten. 10^2 + 10^1 + 10^0 = 100 + 10 + 1 = 111
In the binary number system each place value increases by a power of two. Since your number only has ones in the first three place values. You would skip place values that have zeros.
2^2 + 2^1 + 2^0 = 4 + 2 + 1 = 7
I hope this is helpful.