Mark44 said:
I would even go so far as to say using ##\pi## as a base is ridiculous. In any number system that uses a positive integer base b, with b > 1, any integer is a finite sum of multiples of powers of b. How would you represent 253, for example, in base-##\pi##?
Calling non-integer bases "ridiculous" is going a bit far.
Let us convert 253 to base pi. The log of 253 to base pi is 4.833... So we will need to start with five digits to the left of the radix point -- in the position with place value pi
4 ~= 97.
So we divide 253 by pi
4 and truncate to the next lower integer. The result is 2.597... which rounds down to 2.
So the first digit is 2.
We subtract 2pi
4 from 253 yielding 58.181817931995...
Now it is just a matter of rinsing and repeating. We need to convert 58.181817931995... to base pi. We already know that the next digit will be in the pi
3 place. So we divide by pi
3 yielding 1.87... which rounds down to 1.
So the second digit is 1.
We subtract pi
3 from 58.181817931995... yielding 27.17554125...
We repeat the process, dividing this by pi
2 yielding 2.75... which rounds down to 2.
So the third digit is 2.
We subtract 2pi
2 from 27.17554125... yielding 7.4363324495...
We repeat the process, dividing this by pi yielding 2.3670581356...
So the fourth digit is 2
We subtract 2pi from 7.4363324495... yielding 1.15314714233...
We repeat the process, dividing this by pi
0 = 1 yielding 1.15314714233...
So the fifth digit is 1.
so ##253_{10}## ~= ##21221_{\pi}##.
We could continue the process indefinitely, populating further positions to the right of the radix point.