If you don't know binary, I sugest you learn it, as I will be referancing it a lot.Here is a sweet tutorial by icecoldjazz.
Hexadecimal, sometimes called Hex, is a 16 base counting system. It uses 16 distinct symbols, 0-9 & a-f. 0-9 act normally while a-f act as 10-15.
In binary, you only have 2 symbols, so you have to rollover to the next space once you go above 1. This is not the case in hex, here you have 16 different symbols, so you roll over once you hit the max symbol, f.
Example 1:
Binary: 00 -> 01 -> 10 -> 11...
Hex: 0d -> 0e -> 0f -> 10 -> 11 -> ... -> 1f -> 20...
For place values, instead of 1s,2s,4s,8s,16s..., you have 1s, 16s, 256s... Each place value goes up by *16.
Ex2:
Bin:
16 8 4 2 1
1 0 0 1 1
Hex:
4096 256 16 1
d f 3 7
To convert it into decimal, you multiply the value of the number by the place value.
Ex3:
4096 256 16 1
d f 3 7
= d(4096) + f(256) + 3(16) + 7(1) | Multiply each number by the place value
= 13(4096) + 15(256) + 3(16) + 7(1) | Convert a-f to 10-15
= 53248 + 3840 + 48 + 7 | Multiply
= 57143 | Add
//Not done, will be adding more as time goes on.
Hexadecimal, sometimes called Hex, is a 16 base counting system. It uses 16 distinct symbols, 0-9 & a-f. 0-9 act normally while a-f act as 10-15.
In binary, you only have 2 symbols, so you have to rollover to the next space once you go above 1. This is not the case in hex, here you have 16 different symbols, so you roll over once you hit the max symbol, f.
Example 1:
Binary: 00 -> 01 -> 10 -> 11...
Hex: 0d -> 0e -> 0f -> 10 -> 11 -> ... -> 1f -> 20...
For place values, instead of 1s,2s,4s,8s,16s..., you have 1s, 16s, 256s... Each place value goes up by *16.
Ex2:
Bin:
16 8 4 2 1
1 0 0 1 1
Hex:
4096 256 16 1
d f 3 7
To convert it into decimal, you multiply the value of the number by the place value.
Ex3:
4096 256 16 1
d f 3 7
= d(4096) + f(256) + 3(16) + 7(1) | Multiply each number by the place value
= 13(4096) + 15(256) + 3(16) + 7(1) | Convert a-f to 10-15
= 53248 + 3840 + 48 + 7 | Multiply
= 57143 | Add
//Not done, will be adding more as time goes on.