Convert following decimals to Binary octal,hexadecimal 115,42,65,315,12,278,231,100,512,108,
Answers
Answer:
115 decimal to binary
we have to divide the number by 2 and mind the remainder in each step
2 | 115 |
2 | 57 | 1
2 | 28 | 1
2 | 14 | 0
2 | 7 | 0
2 | 3 | 1
2 | 1 | 1 = 1110011
binary to Octal: - to convert binary to Octal we have group them in group of 3 digits or 3 bits. and the group of 3 does get complete then add extra zero from left side.
001 110 011
001= (0*2^2)+(0*2^1)+(1*2^0)= 0+0+1 = 1
110 = (1*2^2)+(1*2^1)+(0*2^0) = 4+2+0 = 6
011 = (0*2^2)+(1*2^1)+(1*2^0) = 0+2+1 = 3
SO octal number is 163
binary to hexadecimal: to convert binary to hexadecimal we have group them in group of 4 digits or 4 bits. and the group of 4 does get complete then add extra zero from left side.
0111 0011
0111= (0*2^3)+(1*2^2)+(1*2^1)+(1*2^0)= 0+4+2+1 = 7
0011 =(0*2^3)+(0*2^2)+(1*2^1)+(1*2^0) = 0+0+2+1 =3
So hexadecimal number is 73
Similarly solve the rest