On Fri, Jun 26, 2009 at 5:07 PM, Scott David Daniels<scott.dani...@acm.org> wrote: > pdpi wrote: >> >> ... But since 10 = 2 * 5, all numbers that can be finitely represented in >> binary can be represented finitely in decimal as well, with the exact >> same number of places for the fractional part (and no more digits >> than the binary representation in the integer part) > > OK, so base 30 is the obvious choice, digits and letters, and 1/N works > for n in range(1, 7) + range(8, 11). Gödel numbers, anyone? :-)
To get even more working, use real rational numbers: p/q represented by the pair of numbers (p,q) with p,q natural numbers. Then 1/N works for every N, and upto any desired precision. -- André Engels, andreeng...@gmail.com -- http://mail.python.org/mailman/listinfo/python-list