An alternative to calculating such a number is by using the following table:
Decimal to Binary Conversion Table
When you are presented with a binary number, you can just
write the corresponding bit value under the ranking decimal number. Consider
that you want to calculate the decimal equivalent of the 01110110 binary
number.
Using the last table, you can perform the operation like this:
128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
This produces:
= 64 + 32 + 16 + 4 + 2 |
= 118 |
Using any of these techniques, you can find out the value of a combination of any 8 consecutive bits.
When all bits are 0, the byte also has a value of 0. When combining and mixing 0 and 1 bits, you can get binary values as varied as possible: 0101 0010 or 1101 1110 or 0111 1100. We only need to know what each combination would represent.
Considerer another binary number such as 11001000. To convert it to the
decimal system, we use the decimal to binary table conversion to get:
128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
1 |
1 |
0 |
0 |
1 |
0 |
0 |
0 |
= 128 + 64 + 0 + 0 + 8 + 0 + 0 + 0 |
= 128 + 64 + 8 = 200 |
Practical Learning: Converting a Byte From Binary To Decimal
|
|
- On the Calculator, click the Bin radio button
- Using the 1 and 0 keys on the keyboard, enter
11010111
- Click the Dec radio button to see the result
- Click the buttons to display 200
- Click the Bin radio button to see the result
Converting any Number From Binary To Decimal |
|
Once you are presented with a binary number, you can produce or use a table inspired from the binary to decimal conversion table:
Etc |
214 |
213 |
212 |
211 |
210 |
29 |
28 |
27 |
26 |
25 |
24 |
23 |
22 |
21 |
20 |
Etc |
16384 |
8192 |
4096 |
2048 |
1024 |
512 |
256 |
128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
Imagine you would like to convert the 10011110011101101 binary number to a decimal value.
1 |
0 |
0 |
1 |
1 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
1 |
0 |
1 |
65536 |
32768 |
16384 |
8192 |
4096 |
2048 |
1024 |
512 |
256 |
128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
= 65536 + 0 + 0 +8192+4096+2048+1024+ 0 +
0 + 128+ 64 +32 + 0 + 8 + 4 + 0
+ 1
= 65536 +
8192+4096+2048+1024 +
128+ 64 +32 + 8
+ 4 + 1
= 81133
Practical Learning: Converting any Number From Binary To Decimal
|
|
- On the Calculator, click the Bin radio button
- Click the 1 and 0 buttons to display 10011110011101101
- Click the Dec radio button to see the result
- Notice the same result as our manual conversion
|