Code:
F = (2^3)+(2^2)+(2^1)+(2^0) = 1111
E = (2^3)+(2^2)+(2^1) = 1110
D = (2^3)+(2^2)+(2^0) = 1101
C = (2^3)+(2^2) = 1100
B = (2^3)+(2^1)+(2^0) = 1011
A = (2^3)+(2^1) = 1010
9 = (2^3)+(2^0) = 1001
8 = 2^3 = 1000
7 = (2^2)+(2^1)+(2^0) = 0111
6 = (2^2)+(2^1) = 0110
5 = (2^2)+(2^0) = 0101
4 = (2^2) = 0100
3 = (2^2)+(2^0) = 0011
2 = (2^1) = 0010
1 = (2^0) = 0001
0 = 0000
Now it is so easy to convert from hexadecimal to binary. Each hexadecimal digit represents four binary digits.
Code:
0xAA = 1010 1010
0xA4 = 1010 0100
0xFD4A = 1111 1101 0100 1010
0xABCDE = 1010 1011 1100 1101 1110
Hexadecimal is easier to work with. Now try to write binary of 0xFF7028A4