* nugget <[email protected]> [2020-08-08 00:11]:
> I.e. when splitting up a transaction into multiple transactions.
> say distribute a yearly transaction over 12 months or a weekly one
> over 7 days. 
> 
> Naively, I would take  1 CHF and divide it by 12, and make 12
> transactions.  I dislike having my posting look like "
> 0.08333333333333332870740406406184774823486804962158203125".But
> simply rounding will introduce an error of 4%: round(1/12,2) = 0.8,
> and 12*0.8 = 0.96

I'm not sure what your transaction is about, but I'd ask a completely
different question: is it material?  If we're only talking about 1
CHF, does it really matter whether you book it on one day vs splitting
it up every month.  If we're talking about 1000 CHF, it might make a
material difference, but for 1 CHF I'd say that splitting it across
multiple months is just not worth it.

If it does matter, I would book 0.08 for 11 months and 0.12 in the
last month (or the other way around).

-- 
Martin Michlmayr
https://www.cyrius.com/

-- 
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/20200808111843.GH11541%40jirafa.cyrius.com.

Reply via email to