Let's say we have a function $g: \mathbb{R} \rightarrow [0,1)$ and $g$ is defined by $g(x) = x - \lfloor x \rfloor$.
So far I thought about having $g(a) = b$ meaning we find an $a$ that makes $g(a) = b$.
Thus, $$\begin{align*}g(a) = b \text{ where $b\in [0,1)$} \\ g(a) = a- \lfloor a\rfloor = b \\ \end{align*}$$
Here is where I am stuck. How can I choose an $a$ to show that this function is surjective?