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

jordon howell
jordon howell
817 Points

binary by 2

is there a easier equation to understand binary basic by 2?

1 Answer

james south
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
james south
Front End Web Development Techdegree Graduate 33,271 Points

there's no equation. it may help to realize that the usual system we use is base-10 and it works exactly like base-2, just with 10 instead of 2. every number is expressed as the sum of some amount of 10 to the x for each digit in the number, so we see the number 134, no big deal, but what it really is is 1* (10^2) + 3* (10^1) + 4* (10^0). 100 + 30 + 4 = 134. in base-2 134 would be 10000110. that's 1*2^7 + 0* 2^6 + 0* 2^5 + 0* 2^4 + 0* 2^3 + 1* 2^2 + 1* 2^1 + 0* 2^0. 128 + 4 + 2 = 134.