[Python-Dev] Revised decimal type PEP

Aahz Maruch aahz@rahul.net
Tue, 31 Jul 2001 16:55:26 -0700 (PDT)


Guido van Rossum wrote:
> 
> int/long < decimal < rational < float < complex
> \---------------------------/   \-------------/
>             exact                  inexact

Note that in Cowlishaw's implementation of decimal numbers, decimals are
*not* exact.  Truncation (rounding), overflow, and underflow errors can
occur under addition, subtraction, and multiplication.  It's trivial to
set them to be unbounded, but then Cowlishaw provides no mechanism for
determining the truncation of division.
-- 
                      --- Aahz (@pobox.com)

Hugs and backrubs -- I break Rule 6       <*>       http://www.rahul.net/aahz/
Androgynous poly kinky vanilla queer het Pythonista

I don't really mind a person having the last whine, but I do mind someone 
else having the last self-righteous whine.