numerical methods floating point problem A machine stores fl

numerical methods floating point problem

A machine stores floating point number in a 9-bit word. The first bit is for the sign of the number, the second bit is for the sign of the exponent, the next 3 bits are for the exponent, and the final 4 bits are for the mantissa. The number that (001111001)2 represents in the above given 9-bit format is...?

Solution

Given

sign of mantissa

                          The first bit is 0, so the number is positive

                          The second bit is 0, so the exponent is positive

                           The third bit is 111, are the exponents so

                                 e(111)2= (1*22+1*21+1*20)9=(4+2+1)9=(7)9       (here 20 =1)

                            The next four bits 1001, are the mantissa so,

                              m(1.1001)2 = (1*20+1*2-1+0*2-2 +0*2-3+1*2-4)9  = (1.25)9

                                                 The number in binary format then is

                                        =(1.1001)2*2-(111)2     

                                    The number in 9-bit format is

                                       = 1.25*2-6

                                                          = 0.01953125        

BIT REPRESENTATION PART OF FLOATING POINT NUMBER
                  0 Sign of the number
                  0 sign of the exponent
                 111 sign of the exponents
                  1001

sign of mantissa

numerical methods floating point problem A machine stores floating point number in a 9-bit word. The first bit is for the sign of the number, the second bit is

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site