Proposal for modifying gnucash to use exact quantities
Steven Murdoch
sjmurdoch@linuxfan.com
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
one.
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
understand.
On the other hand the API would get bigger.
--
Steven Murdoch.
email: sjmurdoch@linuxfan.com
web: http://www.bigfoot.com/~murdomania/
PGP Keys: http://www.bigfoot.com/~murdomania/contact.htm
Geek Code: http://www.bigfoot.com/~murdomania/geek.htm