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

00000111

I understand that decimals use base 10 and binary uses base 2, so if you have a byte that is 00000011 why isn't the answer 11? The first 1 is in the 1s place and the second is in the 2s place. 2+1+8=11

1 Answer

Michael Hulet
Michael Hulet
47,913 Points

You're right that 11 in binary is 3 in base 10, but you're skipping a place in the other one. The first place from the left is the 1's place, the next place is the 2's place, and the next place is the 4's place, not 8's (that's the next one). Thus, 111 in binary would be 1 + 2 + 4, which would be 7

On a different note, you share a last name with a person I know. Do you happen to be related to Ari?

Thanks for the answer, I think I get it now. So 00001010 would be 10? I don't have any relatives named Ari to my knowledge. Weinstein is an extremely common last name. It was literally handed out at a dime a dozen.

Michael Hulet
Michael Hulet
47,913 Points

You're right, 1010 in binary is 10 in base 10.

Yeah, I know Weinstein is a fairly common name, but it's just uncommon enough that I thought it warranted the question