Converting Hex, Binary and Decimal
A Rapid Guide
BINARY: 128 64 32 16 8 4 2 1
1 1 1 1 1 1 1 1
HEX : 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
0 1 2 3 4 5 6 7 8 9 A B C D E F
(Now, HEX has two digits i.e D4. the first digit; D is worth 13 lots of 16. the second is worth 4 lots of 1. so if we had F4, we would have 15 lots of 16 and 4 lots of 1.)
BINARY to HEX:
Next we have to find out the value of each section: 240 14
Next we have to add both the NIBBLES. 254.
Then divide by 16 = 15.875. All we need from this is the 15, none of the decimals after it.
Then we must convert 15 into HEX which is F(look at the conversion key). this will be our first digit. so our final answer will look like F..... we have to fill in the gap and find the second digit.
To do this we take the second part of our two NIBBLES: 14. because this is how many ones there are (see brackets under the conversion table) all we need to do is convert it into HEX, which is E.
This makes our final answer:
FE
HEX to DECIMAL: 2F
2 stands for 2x16. This is 32
F stands for 15 1's. this is 15
Add these together, 32+15= 47. Then you write his number down in BINARY: 00101111
DECIMAL to HEX: 173
Divide this by 16. 173/16= 10.8125. All you need is the 10. This will be the first digit of your HEX number, and 10 in HEX is A.
Next you need to Multiply your answer by 16. 10x16= 160.
then you minus that by the original DECIMAL number, 173. 173-160=13. This will be your second Digit, and 13 is D. SO your answer will be: AD