|
You are here MA&T Programme Fourth Class Challenges Master Level Help with Challenge 4

Binary Code: Help
To convert binary into decimal is very simple and can be done as shown below:
Say we want to convert the 8 bit value 10011101 into a decimal value, we can use a formula like that below:
128 |
64 |
32 |
16 |
8 |
4 |
2 |
1 |
1 |
0 |
0 |
1 |
1 |
1 |
0 |
1 |
As you can see, we have placed the numbers 1, 2, 4, 8, 16, 32, 64, 128 (powers of two) in reverse numerical order, and then written the binary value below.
To convert, you simply take a value from the top row wherever there is a 1 below, and then add the values together.
For instance, in our example we would have 128 + 16 + 8 + 4 + 1 = 157 .
|
Click here to see the Results Table for Master Level
|