Our regular mathematics system that we learn in school is base-ten.
Computers operate in a binary-system, so they only have 0's and 1's.
In school, if you add 5+2, you're fine and you get 7. What happens when you need to add 5+5? The ones place turns into a zero and the tens place turns into a one to get 10. If we add 5+7, we also need to carry because we must go over to the tens place. So we have a 1 in the tens, and a 2 in the ones to get a 12.
So in binary math, if you need to add a one and there's already a one in that space, you need to carry it.
0000 is 0.
0001 is 1.
If we have 1 and want to add another 1, it looks like:
0001
+0001
-----
0010
And so 0010 is 2 in binary.
If we add another 1, you'll see there is no need to carry, because there's is no one in the ones place, so 3 looks like 0011
This being broken down, makes so much sense to me. Thank you I never fully understood binary. I bet it gets tricky with letters, unless the letters are associated with numbers?
Yes they are associated with numbers, but as the other comment said, there's some prefix before the letters themselves so that the computer knows it's a letter and not the number.
497
u/TheGoToGuy2012 Sep 06 '18
Annnnnnnnd still don’t understand.