In simple precision format, the largest possible positive number is
$A = 0 ~~~ 11111110 ~~~ 111\ldots 111$
Its predecessor is
$B = 0 ~~~ 11111110 ~~~ 111 \ldots 110$
But what is the absolute difference (in decimal) between these?
Appealing to scientific notation,
$A = 1.(2^{22}+2^{23}+\ldots + 2 + 1) \times 2^{2^{7}+2^{6} + \ldots + 2 - 127}$
and
$B = 1.(2^{22}+2^{23}+\ldots + 2 + 0) \times 2^{2^{7}+2^{6} +\ldots + 2 - 127}$
So they have only a difference of one point in the last decimal digit. The exponent tells us there are $2^{7} + \ldots + 2 - 127$ such decimal points. Let $e$ denote that quantity. Is it correct to say the difference is
$$0.\overbrace{000\ldots 000}^{e \text{ times}}1$$
or am I missing something?
Based on single-precision floating-point format:
Writing $A$ and $B$ in more standard notations,
$$\begin{align*} A &= 1.(2^{22}+2^{21}+\ldots + 2 + 1) \times 2^{e}\\ &= \left[1+2^{-23}\left(2^{22}+2^{21}+\ldots + 2 + 1\right)\right]\times 2^e\\ B &= \left[1+2^{-23}\left(2^{22}+2^{21}+\ldots + 2 + 0\cdot 1\right)\right]\times 2^e\\ \end{align*}$$
where the exponent $e$ is $$\begin{align*} e &= 1111\,1110_2 -127\\ &= 2^7+2^6+\cdots +2+\color{red}{0\cdot} 1 - 127\\ &= 127 \end{align*}$$
Then the difference $A-B$ would be
$$\begin{align*} A -B &= 2^{-23}\times 2^e\\ &= 2^{-23}\times 2^{127}\\ &= 2^{104}\\ &= 20282409603651670423947251286016 \end{align*}$$