Looks like the unit cost for each posting happens to be rounded towards
different direction. A workaround is to manually adjust the last digit, for
example:
2023-03-13 * "VIOV share split"
Assets:1-Investments:Trad:IRA:Vanguard:William:VIOV -0.381 VIOV
{{68.35 USD, 2021-12-27}}
Assets:1-Investments:Trad:IRA:Vanguard:William:VIOV 0.762 VIOV
{89.69816272965879265091863514 USD, 2021-12-27}
An easier way is to use a plugin for stock split, for example my
autobean.stock_split
<https://github.com/SEIAROTg/autobean/tree/master/autobean/stock_split>,
which does the calculation directly on unit cost and thus suffer less from
precision loss. Example:
plugin "autobean.stock_split"
2023-03-13 custom "autobean.stock_split" 2 VIOV ; 1 -> 2 split
On Tuesday, March 14, 2023 at 12:01:48 PM UTC [email protected] wrote:
> I've tried to maintain my dated lots with the recent Vanguard ETF splits.
> Most of my transactions have no issue resolving, but a few of my reinvested
> dividends are throwing me balance errors with very small decimal places.
> Any idea how I can fix this?
>
> 2021-12-27 * "Reinvested dividends of VIOV"
> Assets:1-Investments:Trad:IRA:Vanguard:William:VIOV
> 0.381 VIOV {{68.35 USD}}
>
> Income:2-Nontaxable:TY2021:Investments:Trad:IRA:Vanguard:William:VIOV:Dividend
>
> 2023-03-13 * "VIOV share split"
> Assets:1-Investments:Trad:IRA:Vanguard:William:VIOV
> -0.381 VIOV {{68.35 USD, 2021-12-27}}
> Assets:1-Investments:Trad:IRA:Vanguard:William:VIOV
> 0.762 VIOV {{68.35 USD, 2021-12-27}}
>
> Transaction does not balance: (0.00000000000000000000000002 USD)
>
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/3c189d31-9f08-43a3-9138-c507b0b3232cn%40googlegroups.com.