## 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.

# 101011 how to comes 43 ?

101011 how's work to 43?

Each part of binary corresponds to a power of 2. Let's work our way from right to left to make it easy.

Our binary number is 101011

From right to left, we have:

1 * 2 ^0= 1

1 * 2 ^1=2

0 * 2 ^2 = 0

1 * 2 ^3 = 8

0 * 2 ^4 = 0

1 * 2 ^5 = 32

At the end, we add up all the products: 1 + 2 + 0 + 8 + 0 + 32 = 43.

Hey Tekalign,

This is a binary number. Using the binary system, we can think of 101011 the following way:

2^5 + 2^4 + 2^3 + 2^2 + 2^1 + 2^0

Wherever you see a 1, find the exponent of the number. If you see 0 then the number for that place will be 0. Then add the numbers, after finding the exponents, together.

1 0 1 0 1 1

2^5 + 0 + 2^3 + 0 + 2^1 + 2^0 => 32 + 8 + 2 + 1 = 43

Hope this helps!

48