3.2*2 is 9.6 ... or maybe it isn't?

Andre Engels andreengels at gmail.com
Fri Jun 26 17:17:03 CEST 2009

On Fri, Jun 26, 2009 at 5:07 PM, Scott David
Daniels<Scott.Daniels at 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, andreengels at gmail.com

More information about the Python-list mailing list