42.5k views
5 votes
Convert the decimal number -12 to hexadecimal (2's complement)

User Rkd
by
5.4k points

1 Answer

5 votes

Answer:

FFF4

Step-by-step explanation:

Binary representation of 12 = 00001100

Expressing it in hexadecimal format : 0C

Binary representation of -12:

Step 1 : Computing 1's complement for 12 =11110011

Step 2 : Adding 1 to 1's complement to get the 2's complement =>

11110011+1 = 11110100

Converting the 2's complement representation to hexadecimal format:

F4 ( 8 bit representation) or FFF4 ( 16 bit representation)

User Tpee
by
6.4k points