[Python-Dev] Fixed Decimal types
Greg Stein
gstein@lyra.org
Fri, 24 Dec 1999 12:05:22 -0800 (PST)
On Fri, 24 Dec 1999, Jack Jansen wrote:
> > (1) I think there is great mileage in combining the
> > fixed-decimal concept with Martin Fowler's Quantity
> > pattern, so that a variable could be defined as not
> > just two decimal places but also (say) "GBP" or "USD",
> > and it would be an error to add the two. Same applies
> > for adding metres, kilograms and other quantities.
> > There has also been discussion that the 'type' of a
> > quantity should determine what math should apply.
>
> Isn't this something that is ideally suited for implementation in a Python
> module, based on a core implementation of fixed decimal numbers?
I'd agree with Jack here.
The "simple" change of a scale for the Long values is nice. Starting to
lump in features like this begins to get a little messier...
Happy Holidays,
-g
--
Greg Stein, http://www.lyra.org/