Binary to Hexadecimal number

86 Views Asked by At

I know how to convert 0101 | 0111 in which the 0101 gives me 5, and 0111 gives me 7 So hexadecimal number is: 57

But how about 0011 | 1100 0011 gives me 3, but 1100 gives me 12, does it mean the hexadecimal number is 312?

Thanks!

1

There are 1 best solutions below

0
On

In hexadecimal you need 16 digits. This is usually achieved by using $0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F$. That is $F$ is fifteen and $10$ is sixteen.

When converting from binary to hexadecimal, each group of four binary digits becomes one hexadecimal digit. In the case you are asking, $1100_2$ corresponds to $C_{16}$.