show how 42.25 would be stored as a floating point number with an 8-bit mantissa and a 4-bit exponent.

154 Views Asked by At

So I know that in binary:

42: 00101000

0.25: 01

I then put combine the numbers so it would be: 00101000.01

Once I get this point I'm not sure how to show the mantissa as an 8-bit and the exponent as a 4 bit?

Thank you

EDIT: I think I've worked it out, would the final answer be 0.01010000111?

1

There are 1 best solutions below

0
On

The mantissa is: 169 = 10101001, the exponent is:-2= 1110 Hope this helps.