Let $f$ be a measurable function.
Then
$$ f_n : = \sum_{k=1}^{n 2^n} \left( \frac{k-1}{2^n} \right) \mathbb{1}_{ \left\{ \frac{k-1}{2^n} \leq f < \frac{k}{2^n} \right\} } + n \mathbb{1}_{\left\{ f \geq n \right\}} $$ converges pointwise to $f$
I'm struggling to see how this function is pointwise increasing to $f$, and that
$$| {f - f_n } | \leq \frac{1}{2^n}$$
I see how $\frac{k}{2^n} - \frac{k-1}{2^n}$ leads to that inequality bu how do we know $f = k/2^n$?
It looks like your function $f$ is non-negative. Then you can think of this expression as the result of an algorithm which goes something like this:
OK so now I don't fully understand your questions. It's not literally true that $\|f-f_n\|_{\infty}$ is small, because $f$ might be unbounded.