Convert from Hexadecimal to Binary

Convert from Hexadecimal to Binary

To convert a number from hexadecimal to binary, each hex digit can be converted to binary sepretly, and then appended together.

Example: 0x4d => binary
4 = 0b0100
d = 0b1101
=> 0b01001101 (= 0x4d)