weird math errors in python 2.1.1
Jeff Shannon
jeff at ccvcorp.com
Thu Aug 30 13:01:22 EDT 2001
Marcin 'Qrczak' Kowalczyk wrote:
> 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.
Okay, so my assumption of reflexivity was hasty and unfounded. Oops. :)
...so 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
Technician/Programmer
Credit International
More information about the Python-list
mailing list