I need a help with a proof.
Let $\displaystyle\phi_n:\mathbb{R}_0^+ \rightarrow \mathbb{R}_0^+:x\mapsto \begin{cases} \frac{\displaystyle\lfloor x\cdot 2^n \rfloor}{\displaystyle2^n},&x<2^n,\\ 2^n, &\text{otherwise}.\end{cases}$
Prove that $\displaystyle \lim_{n\rightarrow \infty} \phi_n = x$.
Could anyone please help me with that? Thank you a lot!
Hint: Write $\lfloor x\cdot 2^n\rfloor=x\cdot2^n-\epsilon_{n,x}$, where $\epsilon_{n,x}\in[0,1)$ for all $x\in\mathbb{R}_0^{+}$ and $n\in\mathbb{N}$.