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

binary

what is the value 000000111

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi there! Starting at the far right we compute anything that has a 1 value as 2 to the power of that spot and add it together. The first spot has a power of 0.

In this example it would be:

  • 2 to the power of 0 = 1
  • 2 to the power of 1 = 2
  • 2 to the power of 2 = 4

So when we add all those together we get a grand total of the base10 value of 7.

Hope this helps! :sparkles: