[Math] Finding the mantissa from binary with floating point numbers

binarycomputer sciencefloating point

Here is the example problem slide I am working with:

slide with task

I understand how to get the exponent, its just 2+128=130-127=3

I understand the first bit is the sign bit for positive or negative.

I just get lost with the mantissa. I know each mantissa has to have a 1 before the decimal, but I'm unsure where the .75 came from. 1100000000000000000000 isn't 75 in decimal I mean right?

How do I calculate the mantissa with floating point numbers in binary?

Best Answer

The number after "." is calculated by $$\frac1{2^n}$$ instead of $$2^n$$ So $$1.11 = 2^0 + (1/2^1) + (1/2^2)$$ $$= 1 + 0.5 + 0.25$$ $$=1.75$$