Convert Base 10 to Base 2

94
0
Published 2015-08-22
So basically computer use this system called base 2 and basically, 1 is "on" and 0 "off"... this is really hard to explain. So in this program, the number you type, e.g. 100 will be converted into "1100100" because see, it's 7 digits long, so you go to the seventh item in the "base 2" list and it is 64, right? well the first digit is one, which means you have a sixty-four. The next one is also 1, meaning "on", which means you ADD 32 to the 64 which is on. The 0, remember, means off. That means the next one, the fifth one in the list, is off. That means you DO NOT add sixteen to 96 (64+32 remember?). so the third digit from the right, is one. that is the third item in the list. 4! Add 4 to 96 and you get 100! The number we inputted! congrats! Do you get it? Basically you count the number of digits in the little orange box way up there, then you count FROM THE RIGHT the ones. e. g. 100. The 1 is the THIRD digit counting from the RIGHT. So that means in base 2, 100 means 4.