Proposal for modifying gnucash to use exact quantities

Bill Gribble
Sat, 29 Jul 2000 09:24:04 -0500

On Sat, Jul 29, 2000 at 01:30:05PM +0100, Steven Murdoch wrote:
> 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. 

Not exactly.  Bank balances are stored as a denominated integer
(rational).  The currency of, for example, a US bank account is US
dollars, so the balance of the account is a balance in US dollars, not
any other unit (such as, for example, pennies).  The *denomination* of
the account balance is pennies (1/100 of a US dollar) and the value
that's stored has a denominator of 100.  

Does that address your question?