I have a question in my homework that I have trouble solving it. I'm not sure if I understand the question actually. I'll attach the question below and hope someone could give me any hints.
Consider the open interval $(0,1)$, and let $S$ be the set of points in the open unit square; that is, $S = \{ (x,y): 0 < x, y < 1 \}$. Use the fact that every real number has a decimal expansion to produce a $1-1$ function that maps $S$ into $(0,1)$. Discuss whether the formulated function is onto.
edited: there's a hint in the question "keep in mind that any terminating decimal expansion such as .235 represents the same real number as .2349999... ."
I think the "formulated function" is the $f: S \to (0,1)$. I don't know how to use the decimal expansion concept.
Thanks
Consider the two sequences of decimal expansions of $x$ and $y$. How do you combine them into one sequence injectively?