Define $h: \mathbb Z \to [0,1]$ by $h(z)= z \pi - [z\pi]$ where $[.]$ denotes the floor function.
I want to show this function is injective, I have tried both the approaches using $h(z_1)= h(z_2)$ and try to get $z_1= z_2$ and the another one $z_1\neq z_2 $ to get $h(z_1)\neq h(z_2)$ but stuck in both the methods.
Can anyone please help me out?