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 trialsohee kim
234 Pointswhy, out of all the other numbers, has 2 selected as a base number of binary?
Also, why these number calculation is important for understanding how computer works?
2 Answers
Steven Parker
231,269 Points2 is the "base" number for binary because each binary digit has only 2 states: 1 or 0. This is important to understanding computers because "bits" of storage also have two states, "on" and "off". The 1 and 0 of binary digits directly correlates to the on and off states of the bits.
Eric M
11,546 PointsIn short it's because it's simpler to determine whether or not a signal is on or off (1 or 0) than whether it matches one of many states on a more granular scale.
Electricity varies a little as it passes through a circuit, we can say on is anything above x, and treat anything lower as off, even if there is some current passing through. If we tried to measure more precisely we might find that under certain conditions our measurements were wrong. We have absolutely mind boggling amounts of these on or off states put together to form modern computing, their accuracy behind the scenes is crucial and a binary system makes this base level accuracy easier to achieve.
It's important to understand how binary works because computers store data and execute instructions using binary. This might seem like something you don't really need to be aware of, but it actually has implications for how much space a string takes in memory. If you're dealing with a few paragraphs that's not big deal, if you're working for Wikipedia though how you encode, store, retrieve and display that text might be worth thinking about in terms of bytes and bits in binary.
That's probably not a great explanation, if you look more into transistors, semiconductors, and electronic circuitry you'll get a better understanding.
sohee kim
234 PointsThis is really detailed information. As a starter student, It's bit hard to understand though. I will keep learning. Thank you.
Eric M
11,546 PointsYeah, sorry, Steven's answer is a lot simpler!
sohee kim
234 Pointssohee kim
234 PointsThank you for the heads up!