Yesterday, I posted my articles about the conversion of decimal number to binary number. But, one more things that I forgot to mention are computer system also uses hexadecimal number in its operation. Hexadecimal is base 16 numbering system that count from 0 to 9 then A to F. The meaning of counting 0 to 9 then A to F can be seen in example below
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F
- A = 10
- B = 11
- C = 12
- D = 13
- E = 14
- F = 15
It is much easier for computer system to work with large number using hexadecimal. Hexadecimal number has either 0x prefix or h suffix which both of them returned no value.
How To Convert Hexadecimal Value Into Binary Value
Let say, we have a hexadecimal value Ox3F7A. Because the Ox prefix will return no value, so the hexadecimal digit will be read as 3F7A.
To convert hexadecimal value 3F7A to binary number, we need to translate each of its number to 4 bits binary equivalent. Please refer the table below for better understanding
Based on table above, we can conclude the hexadecimal value 3F7A is equivalent to the binary value 0111 1111 0111 1010.
3F7A = 0011 1111 0111 1010.