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

1 Answer

Belve Marks
Belve Marks
7,332 Points

She's talking about binary numbers. each column in a binary number represents a power of two. So for an eight-bit byte, the columns would represent 128, 64, 32, 16, 8, 4, 2, and 1 in base-10. You get the total by multiplying those column values with corresponding values in the byte and adding the total. For example:

01010101 = 128*0 + 64*1 + 32*0 + 16*1 + 8*0 + 4*1 + 2*0 + 1*1 = 0 + 64 + 0 + 16 + 0 + 4 + 0 + 1 = 85. 

and

10101010 = 128*1 + 64*0 + 32*1 + 16*0 + 8*1 + 4*0 + 2*1 + 1*0 = 128 + 0 + 32 + 0 + 8 + 0 + 2 + 0 = 170.
Josie Nagy
Josie Nagy
14,992 Points

Thank you, your post helped me out the most!