# What is 0.1 converted to 8bit IEEE754?

0.1 via $32\text{ bit}$ is rather easy:

Sign: $0_2 = 0_{10}$

Exponent: $123_{10} = 01111011_2$

Mantissa: $5033165_{10} = 100110011001100110011001101_2$

Now, how do you calculate this, if you've only $8\text{ bit}$ available?
Sign: $1\text{ bit}$, Exponent: $2\text{ bit}$, Mantissa: $5\text{ bit}$

My idea: $S=0; E=01; M=00001$

What do you think?

• There is no 754 standard for 8 bit mini-floats. – user22148 Feb 1 '15 at 19:38

For $8$-bit floating point, you should look at $A$-law and $\mu$-law encoding standards: