I am trying to construct a bijection from $(0,1)$ to $(0,1)^{2}$, and I have come up with:
$$f(x)=f(0.a_{1}a_{2}a_{3}a_{4}...) = (0.a_{1}a_{3}..., 0.a_{2}a_{4}...)$$
But I think there's a problem with this function. Let $$x=0.494949... \Rightarrow f(x)=(0.444...,0.999...) =(0.444,1)$$ which is not in $(0,1)^{2}$. There are more similar problems with repeating decimals, for example: $$f(.010909)=(0,.199...)=(0,.2)=f(0.02)$$
I couldn't find how anyone fixed this problem (though I did see someone mention that it was fixable). Any help would be hugely appreciated.