When converting from Binary to Hex if the input binary number is uneven the code may not work as intended. For example given the input of 10 0110 0101 the result should be 265. However the code computes it as 4C. On the contrary a binary input of 010 should result in 2 and the code works given that input.
When converting from Binary to Hex if the input binary number is uneven the code may not work as intended. For example given the input of 10 0110 0101 the result should be 265. However the code computes it as 4C. On the contrary a binary input of 010 should result in 2 and the code works given that input.