Proposal for modifying gnucash to use exact quantities

Richard Wackerbarth rkw@dataplex.net
Tue, 1 Aug 2000 23:30:39 -0500


On Tue, 01 Aug 2000, Jason Rennie wrote:
> rkw@dataplex.net said:
> > 1) Your API does not hide the implementation details. If we change the
> >  representation of an amount, many calls will have to be changed
> > rather than  localizing the changes to the "math" routines.
>
> The "constructor" will obviously need to be changed.  The
> gnc_numeric_convert routines will need to be changed, but they are
> specific to the storage type anyway.  The GCF reduction and conversion
> routines would need to be changed, but they need to be specific to
> gnc_numeric.  What else would need to be changed?

The problem is that the calls to do simple things like "add" two numbers
all contain elements of the implementation. Therefore each call, in any 
routine, might get changed.