How would you convert the Binary number 01001101 into both Hexadecimal and Decimal?

Into Decimal (Base 10): Write the values for each bit above the number to be converted (128, 64, 32, 16, 8, 4, 2, 1). For each bit in the number to be converted, if it is a 1, circle the value that you wrote above it. Now simply add together all of the circled values, and you have calculated the decimal equivalent. In this example you would circle and add 64+8+4+1, giving that 01001101= 7710. Into Hexadecimal (Base 16): Split the binary number into two groups of 4 bits (4 binary digits). Calculate the decimal equivalent for each part using the steps above, and write this underneath each group. In this example, split into 0100 and 1101. The binary equivalents for each of these are 4 and 13 respectively, using the steps from above. Now, you can easily convert each of the decimal numbers into Hexadecimal using the following conversions: (Decimal10 = Hexadecimal16) 0=0, 1=1, 2=2,..., 9=9, 10=A, 11=B, 12=C, 13=D, 14=E, 15=F In our example, we find that 410 = 416 and 1310 = D16. Now simply write these Hexadecimal digits together to complete the problem, so 010011012 = 4D16

GM

Related Computing GCSE answers

All answers ▸

What is the difference between a data structure and a data type?


What is Bubble Sort algorithm and how it works? Give an example of pseudo-code explaining the process.


Represent 83 in 8 bit binary.


Describe two different functions performed by an operating system [4 marks]