Resources | Subject Notes | Computer Science
To convert between positive hexadecimal and positive binary representations.
Hexadecimal is a base-16 number system, using the digits 0-9 and A-F to represent values 0-15. Binary is a base-2 number system, using only the digits 0 and 1.
Each hexadecimal digit corresponds to exactly four binary digits.
For example:
Hexadecimal 5 is equivalent to binary 0101.
Hexadecimal A is equivalent to binary 1010.
Method:
Convert the hexadecimal number 2A to binary.
Therefore, the hexadecimal number 2A is equal to the binary number 00101010.
Convert the hexadecimal number F3 to binary.
Therefore, the hexadecimal number F3 is equal to the binary number 11110011.
Hexadecimal | Binary |
---|---|
0 | 0000 |
1 | 0001 |
2 | 0010 |
3 | 0011 |
4 | 0100 |
5 | 0101 |
6 | 0110 |
7 | 0111 |
8 | 1000 |
9 | 1001 |
A | 1010 |
B | 1011 |
C | 1100 |
D | 1101 |
E | 1110 |
F | 1111 |
Convert the following hexadecimal numbers to binary:
Understanding the relationship between hexadecimal and binary is fundamental to data representation in computer science. This conversion is crucial for analyzing and manipulating data at a low level.