No matter what the base number, the first place value is always 1.
Each place value is the previous value times the base number.
binary: 128 64 32 16 8 4 2 1
example: 1001 1100 means
128 + 16 + 8 + 4
or 156
hex: 256 16 1
because there are 16 possibilities for each place value (0 - 15) we use letters to represent the values 10 - 15 (A=10, B=11, C=12, D=13, E=14, F=15).
example: 1AC
1*128 + A (or 10) * 16 + C (or 12) * 1
=128 + 160 + 12 = 300
Converting from binary to hex (and vice versa) is easy because one binary nibble (4 bits) convert to one hex digit (and vice versa). So all you need o do is look at 4 bits at a time.
Example:
1011 1100 0011 0101 1001
B C 3 5 9
or
5D8E
|