Convert the hexadecimal '3E', which represents a 2's compliment binary number, in decimal.

Firstly, represent the 316 and E16 as 2 four bit binary numbers (known as nibbles). Once we have this (0011 and 1110 respectively), we can then combine them back together, into one 8-bit 2's compliment binary number (00111110). From here, we can convert this 8-bit binary number to decimal like normal, so it becomes 32+16+8+4+2 = 6210.

JB

Related Computing A Level answers

All answers ▸

A computer stores floating point numbers of size 1 byte, with 3 bits for the mantissa and 5 bits for the exponent. State what the effects would be on the stored numbers if instead 5 bits were used for the mantissa and 3 bits were used for the exponent.


What is the difference between compile-time errors and runtime errors?


When a stack is implemented using a 1-D array, adding a valid item can cause an execution error. Explain why an execution error can occur in this situation.


What is the difference between local and global variables?