[Python-Dev] Fixed Decimal types

Jack Jansen jack@oratrix.nl
Fri, 24 Dec 1999 13:34:28 +0100


> (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?
--
Jack Jansen             | ++++ stop the execution of Mumia Abu-Jamal ++++
Jack.Jansen@oratrix.com | ++++ if you agree copy these lines to your sig ++++
www.oratrix.nl/~jack    | see http://www.xs4all.nl/~tank/spg-l/sigaction.htm