Binary to Hexadecimal Conversion
To convert a binary number into hexadecimal format, first of all pad the binary number with leading zeros on the left most side to make sure that the binary number contains multiples of four bits. After that follow the following two steps:
 First, break the binary number into 4bit sections from the LSB to the MSB.
 And then convert the 4bit binary number to its Hex equivalent.
Let us take an example to better understand the method. Let we have any binary number 100 1110 1101 0011 to be converted into its corresponding hexadecimal number. Then we shall apply above two steps as shown below:
4bit binary number section 
0100 
1110 
1101 
0011 
Hexadecimal value 
4 
E 
D 
3 
Thus the hexadecimal value, corresponding to the binary number 100 1110 1101 0011 is 4ED3.
Hexadecimal to Binary Conversion
To convert a hexadecimal number into a binary number we follow the following two steps:
 First, convert the Hexadecimal number to its 4bit binary equivalent.
 And then combine the 4bit sections by removing the spaces.
To better understand the procedure let us take an example of the above hexadecimal number, that is 4ED3 and apply these two steps on it as follows:
Hexadecimal value 
4 
E 
D 
3 
4bit binary number section 
0100 
1110 
1101 
0011 
Thus for the hexadecimal number 4ED3, we get the corresponding binary number
= 0100 1110 1101 0011
This is the expected answer.
Sample Chapters from book DATA RECOVERY WITH AND WITHOUT PROGRAMMING by Author Tarun Tyagi 

Publishers of the Book
Number of Pages
ISBN
Price of the Book

BPB Publications, New Delhi, India
540
8176569224
$69.00 (Including Shipping Charges, Cost of Book and Other expenses, Free Source Code CD included with the Book)



