GNUCash is making up prices

Randall Hopper aa8vb@nc.rr.com
Mon, 17 Sep 2001 23:09:53 -0400


Thanks for all the replies.

Bill Gribble:
 |For example, if apples are labeled "3 / $1" and you buy one, it will
 |probably cost you $0.34.  The price of that apple is $0.34, despite what
 |the sign says, because you paid $0.34 and got one apple.  If you bought
 |3, the price would be $0.3333333333, but that's irrelevant because you
 |only bought one. 
 |
 |The Buy amount *does* have to be an integer number of cents, because
 |that's the basic unit that we do financial transactions in if the
 |currency is USD, and your dividend payment that you reinvested has an
 |exact value in cents. 

Actually no, the dividend reinvestment is an exact decimal in shares.
However, the amount reinvested (decimal shares * current stock price) "does
not" have to be an exact number of cents).  This is where the problem lies.

With these funds: 

     - shares is exact to 4 digits
     - price/share is exact to 2 digits

shares * price/share is NOT exact to 2 digits.  

The apply analogy breaks down because nobody is pulling change out of their
pocket or writing a check.  The transaction here is in shares, not cents.

Randall

-- 
Randall Hopper
aa8vb@nc.rr.com