Reversing a number of infinitely many digits

130 Views Asked by At

Lets say we have a function that gets as input a real number and returns its reverse

e.g. 123.12 -> 21.321

So what happens when the input is a number α that has infinitely many digits. Does then reverse(α) exist as a number? Is this number well defined?

2

There are 2 best solutions below

6
On BEST ANSWER

If the input is real numbers, then no. There is no real number which has an integral part with infinitely many digits.

But it's worse, do you map $\frac12$ to $5$ or the $\ldots9994$?

0
On

There is an idea like that, called the $p$-adics. The $p$ is because it works better when the base is prime instead of ten.