I found this statement in my textbook and I wasn't able to prove it:
$$\forall x \in \mathbb{R} ; \exists (k, r) \in \mathbb{Z}\times [0, 1) / x = k + r $$
I tried proving it by contradiction and succeeded in doing it for numbers in $\mathbb{Z}$, and now I am stuck at proving it in $\mathbb{R}- \mathbb{Z}$. I would like if someone could give me a nudge or a hint .Note that this statement is useful when solving equations involving the floor function such as $(\lfloor x\rfloor)^2=\lfloor x^2 \rfloor $
Oh and please this is my first question on the forum, I have a precalculus level, and if I've violated any rule or done something incorrectly let me know because somehow my question got closed.