Floating point numbers

1.3k Views Asked by At

In a certain computer represents numbers in base2, if the distance between 7 and the next largest floating-point number is $2^{-12}$. What is the distance between 70 and the next largest floating number on that computer?

1

There are 1 best solutions below

0
On

Written in base 2, the smallest floating-point number larger than 7 is $7+2^{-12} = 111.000000000001$ (with 11 zeros). From this, you can conclude the mantissa has 15 bits, and so when we increment 70 by the smallest amount possible, we get $1000110.00000001$; this distance is $2^{-8}$.