weird math errors in python 2.1.1
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Thu Aug 30 06:30:45 EDT 2001
Thu, 30 Aug 2001 10:23:41 +0200, Alex Martelli <aleax at aleax.it> pisze:
>> >(just as there are some binary fp numbers that aren't
>> >decimal-representable).
>>
>> Actually, I don't think that is true, as I learned on this list. I think
>
> Right, and that's easy to prove -- that's because 2 is a
> factor of 10, of course.
More generally: every prime factor of 2 is also a factor of 10.
E.g. all numbers representible in hexadecimal fractions are
representible in decimals as well.
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTĘPCZA
QRCZAK
More information about the Python-list
mailing list