- 1). Place a list of numbers in a row over the top of your binary number. Start from right and work your way to the left. Place the number "0" over the top of the far right binary digit, then place a "1" over the top of the next rightmost binary digit. Continue doing this until you've placed a number on top of each binary digit, adding "1" to the number every time you move to a new binary digit. For example, say your binary number was "1010." Your numbers would look like this when you were done writing over the top of the binary number:
3210
1010 - 2). Write down all the numbers in the top row that have a "1" in the bottom row (the binary number). Following the example above, you would write down "3" and "1."
- 3). Take the first number you wrote down in the previous step. Raise 2 to the power of that number and write the result down. For example, if you started with 3 from the example above, you would raise 2 to the power of 3 and get 8.
- 4). Repeat the last step for all the numbers you wrote down in Step 2. Continuing the previous example, you would only have the number 1 remaining. You would raise 2 to the power of 1, which is 2.
- 5). Add all the numbers from the previous two steps together. Concluding the example above, you would come up with 10. This is the decimal representation of your binary number.
previous post