Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Digital Literacy Computer Basics Computer Basics Binary

Jonathan Nicolas
Jonathan Nicolas
45 Points

what number is represented by the byte 00000001?

I am having difficulties understanding the binary system I try to follow along and will continue watching the video a couple more time but as of now have 0 understanding on binary.

1 Answer

Shawn Flanigan
PLUS
Shawn Flanigan
Courses Plus Student 15,815 Points

Jonathan:

Basically, the digit all the way to the right has a value of 1. The next digit to the left has a value of 2. The next has a value of 4. The next has a value of 8.

And they keep doubling in value as you continue to add digits.

In your example, 00000001 means you have: (0 x 128) + (0 x 64) + (0 x 32) + (0 x 16) + (0 x 8) + (0 x 4) + (0 x 2) + (1 x 1) = 1

For another example, if you wanted to represent the number 135 in binary...you would need 128 + 4 + 2 + 1: (1 x 128) + (0 x 64) + (0 x 32) + (0 x 16) + (0 x 8) + (1 x 4) + (1 x 2) + (1 x 1) = 10000111

It helped me ! I couldn't unerstand the video. With your post I've almost got 5/5 on the quiz. Thank you.