previous | start | next

Floating Point Example

If IEEE floating point representation is used with

   1 bit sign field         s
   8 bit exponent field     e
  23 bit fraction field     f
  --
  32 bits

For the value x = 100.5 (decimal)

the floating point representation requires

 the value 100.5 = (-1)s * 2E * M

 where M (the significand) is either in the range 

    1 <= M < 2  (normalized) 

or 

    0 <= M < 1 (denormalized)

(a) What are the values of E and M?

(b) What is the bit representation of x; that is, what are the s, e,
and f fields?

100.5 = 64 + 32 + 4 + 1/2= 26 + 25 + 22 + 2-1

So, 100.5 (decimal) can be in expressed in binary: 

100.510 = 1100100.12


previous | start | next