[Python-Dev] RE: Adding decimal (aka FixedPoint) numbers to Python

Greg Ewing greg@cosc.canterbury.ac.nz
Thu, 19 Dec 2002 09:53:15 +1300 (NZDT)


Tim Peters <tim_one@email.msn.com>:

> So if the fixed decimal type is called "decimal", what are *you* going to
> call the new floating decimal type?

I don't know, but whatever it is it somehow needs to connote
both decimalness and floatness.

Maybe the module should be called decimal, then we could
have decimal.fixed and decimal.float.

Or maybe decimal could be a built-in abstract type with
class attributes fixed and float that are subclasses of
it.

Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury,	   | A citizen of NewZealandCorp, a	  |
Christchurch, New Zealand	   | wholly-owned subsidiary of USA Inc.  |
greg@cosc.canterbury.ac.nz	   +--------------------------------------+