Find the binary of decimal numbers given with powers of 10

421 Views Asked by At

Convert to binary : 46.5 * 10^(-24) Or something like 46.5 * 10^(24)

I have to find the binary equivalents here, for the purpose of representation in IEEE 754 floating point representation. But I cannot convert the powers of 10 to binary! Please help me!

1

There are 1 best solutions below

2
On

The method for converting a decimal number less than $1$ to binary uses repeated multiplication by $2$. $$2(0.00465)=0.0093$$ $$2(0.0093)=0.0186$$ $$2(0.0186)=0.0372$$ $$2(0.0372)=0.0744$$ $$2(0.0744)=0.1488$$ $$2(0.1488)=0.2976$$ $$2(0.2976)=0.5952$$ $$2(0.5952)=1.1904$$ $$2(0.1904)=0.3808$$ $$2(0.3808)=0.7616$$ $$2(0.7616)=1.5232$$ $$2(0.5232)=1.0464$$ continuing this process of doubling the fractional part of the result gives the infinite binary expansion of the number in the units column. That is to say $$(0.00465)_{10}\approx(0.000000010011)_2$$