Hexadecimal number system is also used in computers. Hexadecimal means 16. 16 Hexadecimal numbers are 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F.
Here is a table that shows decimal, binary and its hexadecimal equivalent numbers.
Decimal | Binary | Hexadecimal |
0 | 0000 | 0 |
1 | 0001 | 1 |
2 | 0010 | 2 |
3 | 0011 | 3 |
4 | 0100 | 4 |
5 | 0101 | 5 |
6 | 0110 | 6 |
7 | 0111 | 7 |
8 | 1000 | 8 |
9 | 1001 | 9 |
10 | 1010 | A |
11 | 1011 | B |
12 | 1100 | C |
13 | 1101 | D |
14 | 1110 | E |
15 | 1111 | F |
Hexadecimal To Binary Conversion:
Just suppose we want to convert 3F into its binary equivalent here is how to achieve it. First of all convert 3 and F to its 4 bit equivalent binary.
3 | F |
0011 | 1111 |
So binary equivalent of 3F is 0011 1111
Another Example:
How to convert 3AF into its binary equivalent: 3AF is a hexadecimal number so first of all we will convert 3, A and F into its binary equivalent separately and then join them together, that will be binary equivalent of 3AF.
3 | A | F |
0011 | 1010 | 1111 |
So binary equivalent of 3AF is 0011 1010 1111.
Binary To Hexadecimal Conversion:
Here is how you can convert binary number to its hexadecimal equivalent. Just suppose we want to convert this 16 bit binary into hexadecimal. Here is the 16 bit binary number. 1111 1110 0011 1111. So first of all we will convert each 4 bits into its hexadecimal equivalent and then join them to get the answer.
1111 | 1110 | 0011 | 1111 |
F | E | 3 | F |
So FE3F is a hexadecimal number of given binary equivalent.
No comments:
Post a Comment