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

Are you supposed to put the number together, Like 1 plus 1 is 2?

i cant figure this out are you supposed to plus the numbers like this: 1 + 1 is 2?

4 Answers

Belve Marks
Belve Marks
7,332 Points

Good start! each column represents a power of two, and has one of two values: on (1) or off (0). For an eight-bit byte, the columns represent: 128, 64, 32, 16, 8, 4, 2, and 1. Each 1 in a binary means that bit is "on" and that value should be added to the total. For example: 00000000 = 0 + 0 + 0 + 0 + 0 + 0 + 0 + 0 = 0, and 01100111 = 0 + 64 + 32 + 0 + 0 + 4 + 2 + 1 = 103.

I like your answer :)

:smile:

Yes. you are supposed to add. for example: 0001 is the number 1, 0010 is 2, and 0011 is 2 + 1 which is 3.

~Alex :smile:

thank you much appreciated frinds

say you have the numbers 00061203 the correct reply would be 62 bytes. 32+16+8+4+2