How to convert
To convert a binary number to hexadecimal, the process involves grouping the binary digits into sets of four (starting from the right), and then converting each group to its hexadecimal equivalent
Group the binary digits into sets of four, starting from the right:
1011010 = (1011) (1010)
If there aren't enough digits to make a full set of four, add leading zeros:
11010 = (0001) (1010)
Convert each 4-bit group to its hexadecimal equivalent using the following table for conversions:
Binary | Hexadecimal |
---|---|
0000 | 0 |
0001 | 1 |
0010 | 2 |
0011 | 3 |
0100 | 4 |
0101 | 5 |
0110 | 6 |
0111 | 7 |
1000 | 8 |
1001 | 9 |
1010 | A |
1011 | B |
1100 | C |
1101 | D |
1110 | E |
1111 | F |
Write down the octal digits:
11010 = (0001) (1010) = 1A