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

Digital Literacy Computer Basics Computer Basics Binary

Alexander Zaldana
Alexander Zaldana
38 Points

what number is represnted by the byte 00000111?

what number is represnted by the byte 00000111?

2 Answers

Hi Alexander,

Your answer can be found here.

Hope this helps.

KB :octopus:

Kyler Smith
Kyler Smith
10,110 Points

Binary is pretty easy to convert (compared to other bases!). Starting from the right you have a 1 or 0. Each digit to the left is a multiple of 2. So the left most is 1, second is 2, third is 4, fourth is 8, fifth is 16 and so on. If the binary number is HIGH (or a 1), you add that number to your count. Take the binary number 0101 for an example. The right most number is a HIGH and represents a 1. The next number to the left is LOW and represents a 2, but because it is LOW, you need not count it. The next number is HIGH and represents a 4. Because it is HIGH you add that to the initial 1 and you now have 5. Finally, the last number is LOW and represents an 8. Because it is LOW, you do not count it and the binary conversion is 5. Hope you find this helpful and goodluck!