On 24 Jun 2000 10:29:57 EST, the world broke into rejoicing as
Bill Gribble <[EMAIL PROTECTED]>  said:
> This patch against the current 1.4 CVS tree fixes an outstanding
> problem with transaction balancing.  When setting a split's value, the
> number of shares is calculated as Q=T/I.  However, since brokerages
> round transaction values to the nearest penny, the number of shares
> calculated can be fractionally different from the number actually
> bought or sold.  In some situations, the number of shares held in an
> account can get to be wrong by a noticeable amount (particularly on
> QIF import).
> 
> The more-correct behavior is to fractionally adjust the
> price-per-share to account for the difference between the actual price
> of the transaction and the product of price * number.
> 
> The completely correct behavior will have to wait until we have
> arrived at a better way of representing these values and deciding when
> a transaction is balanced.

I don't think you're going to get anything better than the "more-correct"
behaviour.  It correctly implies that the price that was paid is
less "correct" than either of the _truly fixed_ things, namely:
  a) The total money paid for the security, and
  b) The total quantities of security that you own.
Those are the two things that are _precisely_ fixed by the transaction;
the price is most definitely secondary to them.

Note that the price is a bit less precise still, as if you pay some
commission on the transaction, as is common, for stock trades, the
"price" that you pay, or receive, heads away from the market price.
--
[EMAIL PROTECTED] - <http://www.ntlug.org/~cbbrowne/lsf.html>
"...you  might  as well  skip  the  Xmas  celebration completely,  and
instead  sit  in  front  of  your  linux  computer  playing  with  the
all-new-and-improved linux kernel version." -- Linus Torvalds

--
Gnucash Developer's List
To unsubscribe send empty email to: [EMAIL PROTECTED]


Reply via email to