"What is the maximum and minimum difference between two successive real numbers representable in IEEE 754 Single Precision and Double Precision Floating Point Representations respectively?"
In order to answer this question, I am unable to visualise how Floating Points are spread over the real number line, assuming the precision of real numbers is same as that of IEEE 754 single precision & double precision respectively.
So I am looking for graphs of the following two functions based on IEEE 754 single precision representations.
$f\left ( x \right ) = \left\{\begin{matrix}
0 & ,\text{if x can't be represented in IEEE 754 single precision.} \\
1 & ,\text{if x can be represented in IEEE 754 single precision.}
\end{matrix}\right.$
$f\left ( n \right ) = \left\{\begin{matrix}
d, & \text{where d is the diffrence between n-th and (n-1)th floating points representable in IEEE 754 single precision. }\\
0, & \text{if n-th or (n-1)th floating point number does not exists in IEEE 754 single precision representations.}
\end{matrix}\right.$
Considering only normalised values and zero.
and not considering Infinities, NaN and denormalised numbers.
Could anybody please help me out with these graphs so that I can understand floating points properly.