You are on page 1of 2

Past paper

Convert 1D7F.1316 TO Decimal, Binary or Octal

Solution

D = 13, F = 15

Decimal

1D7F.1316 = (1*16^3 + D*16^2 +7*16^1 + F*16^0) . (1*16^ -1 + 3*16^ -2)

= (1*4096 + 13*256 + 7*16 + 15*1) . (1*1/16 + 3*1/256)

= (4096 + 3328 + 112 + 15) . (1/16 + 3/256)

= 7551. 19/256

= (7551.07421875)10

Binary

1D7F. 1316 = (0001110101111111.00010011)2

Octal

1D7F.1316 = 0(001)(110)(101)(111)(111) . (000)(100)(110)

= (016577.046)8

Obtain 1’s and 2’s complement of the binary number 11011010 using formula

Then multiply the answer with 101.

Solution

1’s complement

Apply the not gate in the binary number 11011010. Then binary number is 00100101.

00100101 *101 = 10110201 = 101101001

2’s complement

Add 1 in the 1’s complement 00100101 +1 = 00100102 = 11011011.

11011011 * 101 =1112112111 = 111101110111

You might also like