Proposal for modifying gnucash to use exact quantities

Steven Murdoch
Sat, 29 Jul 2000 13:30:05 +0100

It seems clear to me that there are many occasions where a value is
stored, and it's only permissable values are integers (things like
number of shares, bank balance, number of accounts etc...). Bill's API
is clearly sufficient for this purpose and already has the required
functions to accomodate this, simply by setting the denominator to be

My question is would it be *easier* to implement the modifications
needed to Gnucash if another type and it's associated funcions were
added to the API that could only represent integers (say stored as a
64bit integer)?
On the plus side it would not be necessary to check for rounding under
addition, subtraction and multiplication, also it would not be necessary
to always set denom to 1, and possibly make the code easier to
On the other hand the API would get bigger.

Steven Murdoch.
PGP Keys:
Geek Code: