weird math errors in python 2.1.1

Jeff Shannon jeff at
Thu Aug 30 19:01:22 CEST 2001

Marcin 'Qrczak' Kowalczyk wrote:

> Thu, 30 Aug 2001 10:23:41 +0200, Alex Martelli <aleax at> 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.

Okay, so my assumption of reflexivity was hasty and unfounded.  Oops.  :) when *is* decimal floating-point (or rationals, for that matter) going to
become available?   (I'm not offering to help, because I think I've already
demonstrated quite well how poorly qualified I am.... <wink> )

Jeff Shannon
Credit International

More information about the Python-list mailing list