Schema

David Merrill dmerrill@lupercalia.net
Tue, 12 Dec 2000 18:04:08 -0500


On Tue, Dec 12, 2000 at 03:02:15PM -0600, Bill Gribble wrote:
> On Wed, Dec 13, 2000 at 06:42:04AM +1000, Phillip J Shelton wrote:
> > It is the smallest amount that this account can change by.  GnuCash is
> > now using a variation on rational numbers which have a numerator, the
> > value, and a denominator, the damont.
> 
> This isn't right.  Each of 'value' and 'damount' is a rational number
> (the data type is gnc_numeric).  The 'value' is the 'amount of the
> account's Currency', and the damount is the 'amount of the split's
> Security'.  If your stock account has a currency of USD and a security
> of IBM, and you buy 100 shares for 1000 dollars, the value is 1000 and
> the damount is 100 (both expressed in suitable rational
> representations).

Would you please give me an example that uses both numerator and
denominator in each field? Or a set of example, if that is easier?
I'm having trouble seeing how this works.

tia

-- 
Dr. David C. Merrill                     http://www.lupercalia.net
Linux Documentation Project                dmerrill@lupercalia.net
Collection Editor & Coordinator            http://www.linuxdoc.org
                                       Finger me for my public key

bug, n:
	A son of a glitch.