Convert the following two signed decimal numbers into hexade
Convert the following two signed decimal numbers into hexadecimals. (a) 79.25_10 (b) -79.25_10
Solution
1 Ans)
a) 79.25=79 + 0.25
79=4*161+15*160= 4F (Hexa Decimal) 15 =F in hexadecimal
0.25=4*16-1=0.4 (Hexa Decimal)
79.2510=4F.416
-----------------------------------------------------
b) -79.25 it is negative number ,so lets represent it 2\'s compliment form
79.2510=4F.416 =0100 1111.01002-the last one is binary
Let\'s take 2\'s compliment by inverting each bit and add 1 to it
1011 0000.1011+1=1011 0001.10112 Converting this to Hexa Decimal
-79.2510 = B1.B16
