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

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.