Signed zeros: is this a bug?

Alex Martelli aleax at mac.com
Sun Mar 11 21:59:43 EDT 2007


Paul Rubin <http://phr.cx@NOSPAM.invalid> wrote:

> (rejected) for Python to support exact rational arithmetic in addition
> to floating point and exact integer arithmetic.  Exact rationals in
> Python (if implemented) should behave like mathematical rationals.
> But Python floating point arithmetic should follow IEEE 754, at least
> when the hardware supports it, which these days is almost always.

Incidentally (and I know you know that, Paul, but others interested in
this thread might not) fast exact rational arithmetic (based on the LGPL
library named GMP) is supplied, among other functionality, by module
gmpy, currently found at http://code.google.com/p/gmpy/ (this version is
more recent than the older one at sourceforce, which for some reason
doesn't let me update things right any more).


Alex



More information about the Python-list mailing list