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

J Pyronneau
J Pyronneau
188 Points

I cant figure out how to calculate the binary numbers. Can someone assist?

I am still having trouble calculating the binary numbers and need help

1 Answer

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

Hi there! Let's take a look at the binary number 1101 for example. I'm going to be using ^ to denote "to the power of". For example 4^2 = 16. The far right side will be 2^0 and we count up from there.

2^3 = 8

2^2 = 4

2^0 = 1

That gives us a total of 13. We only really need to pay attention to where the ones are as any 0 will only result in a 0 and not affect the total. Hope this helps! :sparkles: