XDBFplaysGamesX | Daniel
Career
- Joined
- Nov 25, 2014
- Messages
- 635
- Reaction score
- 466
So I haven't been so active on the forums, so I thought I contribute to this section with a thread on how to learn binary! I thought since I know how to do code so well, I thought I can show everyone I know. So here is part 1 with the topic of binary!
~|~«»«»~|~
So the first thing you need to know is what binary is. Binary is relating to, being, or belonging to a system of numbers having 2 as its base <the binary digits 0 and 1>. If you don't understand this definition, it basically means that instead of using your standard 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 numbers (Arabic Number System), you use 0 and 1 as your numbers which is expressed in a system of numerical notation that has 2 rather than 10 as a base.
So lets begin!
So the first thing you need to do is make a chart like this:
64 | 32 | 16 | 8 | 4 | 2 | 1
Obviously, you can see the pattern and if you want to expand the chart for numbers higher than 127, you can expand the chart by getting 64 and multiplying it by two and so forth.
So let's take the number 26 to turn into binary form. Now looking at the chart above, which numbers can appropriately be between 26 without going higher than twenty six? That number would be 16 because if we used 32, then it would automatically become wrong! So what we would do is that in our chart, is put a number 1 under 16 because what we are striving to get is the set of 1s to add up to 26.
So in our chart, we will put:
64 | 32| 16 | 8 | 4 | 2 | 1
1
So now, what we do is find an exceptionally large number that can get us closer to 26, so the number we would choose is "8" because 16+8= 24 and that is a number that can get us closer to 26.
Now that we have gotten 8, in our chart, we will put:
64 | 32 | 16 | 8 | 4 | 2 | 1
1 1
Now that we are closer to the end of our chart, what we can simply do is get 26, the number we are working with, and subtract it with 24, the number we have so far, and we should get 2, and in our chart, it will be expressed as:
64 | 32 | 16 | 8 | 4 | 2 | 1
1 1 0 1 0
And this is because 16+8+2= 24, and because 4 and two are not in any use in this string of numbers, they are expressed with a zero.
So the binary form of 26 is 11010!
____________
Now for turning binary numbers into regular form. Now this is very simple! Lets take 101010 for example. Lets make our chart again and put the numbers in the chart:
64 | 32 | 16 | 8 | 4 | 2 | 1
1 0 1 0 1 0
~|~«»«»~|~
So the first thing you need to know is what binary is. Binary is relating to, being, or belonging to a system of numbers having 2 as its base <the binary digits 0 and 1>. If you don't understand this definition, it basically means that instead of using your standard 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 numbers (Arabic Number System), you use 0 and 1 as your numbers which is expressed in a system of numerical notation that has 2 rather than 10 as a base.
So lets begin!
So the first thing you need to do is make a chart like this:
64 | 32 | 16 | 8 | 4 | 2 | 1
Obviously, you can see the pattern and if you want to expand the chart for numbers higher than 127, you can expand the chart by getting 64 and multiplying it by two and so forth.
So let's take the number 26 to turn into binary form. Now looking at the chart above, which numbers can appropriately be between 26 without going higher than twenty six? That number would be 16 because if we used 32, then it would automatically become wrong! So what we would do is that in our chart, is put a number 1 under 16 because what we are striving to get is the set of 1s to add up to 26.
So in our chart, we will put:
64 | 32| 16 | 8 | 4 | 2 | 1
1
So now, what we do is find an exceptionally large number that can get us closer to 26, so the number we would choose is "8" because 16+8= 24 and that is a number that can get us closer to 26.
Now that we have gotten 8, in our chart, we will put:
64 | 32 | 16 | 8 | 4 | 2 | 1
1 1
Now that we are closer to the end of our chart, what we can simply do is get 26, the number we are working with, and subtract it with 24, the number we have so far, and we should get 2, and in our chart, it will be expressed as:
64 | 32 | 16 | 8 | 4 | 2 | 1
1 1 0 1 0
And this is because 16+8+2= 24, and because 4 and two are not in any use in this string of numbers, they are expressed with a zero.
So the binary form of 26 is 11010!
____________
Now for turning binary numbers into regular form. Now this is very simple! Lets take 101010 for example. Lets make our chart again and put the numbers in the chart:
64 | 32 | 16 | 8 | 4 | 2 | 1
1 0 1 0 1 0
Now, lets do some adding!
First, we get 32, 8, and 2 and add them up, and we get 42! We ignore 16 , 4, and 1 because they are defined as zeroes in the chart and we only add up the numbers that are defined with ones.
Try it yourself with these numbers, and click the spolier to see if you got the answer right!:
Turn 56 into binary form!:
Turn 125 into binary form!:
Turn 1010001 into regular form!:
_______________
That's all for now! If you found this useful at all or found mistakes or want this improved, just talk about it below and I will be sure to fix it! If you want more of these, just tell me below, and don't take my idea of doing this ;_:
First, we get 32, 8, and 2 and add them up, and we get 42! We ignore 16 , 4, and 1 because they are defined as zeroes in the chart and we only add up the numbers that are defined with ones.
Try it yourself with these numbers, and click the spolier to see if you got the answer right!:
Turn 56 into binary form!:
You should have gotten 111000! Did you get it wrong? Check your math!
You should have gotten 1111101! Did you get it wrong? Check your math!
You should have gotten 81! Did you get it wrong? Check your math!
_______________
That's all for now! If you found this useful at all or found mistakes or want this improved, just talk about it below and I will be sure to fix it! If you want more of these, just tell me below, and don't take my idea of doing this ;_: