That's a normal consequence of how beancount tracks precision. Putting an
integer amount of dollars implies exact precision, while putting N decimal
zeros says the transaction should balance to N decimal places in that
currency.



Sincerely,
Timothy Jesionowski

On Mon, Jul 7, 2025, 10:39 AM Zurab Sajaia <[email protected]> wrote:

> Hi all,
>
> I've been just living with this annoyance for a while but perhaps there is
> a solution I'm missing?
> When I import transactions for stock purchases where I usually have a
> round cash value, say 100 usd, and units of stock are fractional, i.e.
> 2025-07-07 * "buy ABC"
>   assets:cash   -160 USD
>   assets:abs  1.2019 ABS { 133.12 USD}
>
> And this transaction doesn't balance because there is a rounding error.
> What I end up doing (the annoying part from above) is to add zeros to the
> cash amount - 160.00 USD and then the error disappears.
>
> Is there a way better/right way to deal with such issues?
>
> Thanks!
> Zurab
>
> --
> 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 visit
> https://groups.google.com/d/msgid/beancount/e8897673-ac6f-4256-a883-8e5bf25eeedcn%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/e8897673-ac6f-4256-a883-8e5bf25eeedcn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/beancount/CAOVsoWTRq8xxtExL3VZ5vhELPrwEJdo-xFPU_rMUv%3DOwwEQU9g%40mail.gmail.com.

Reply via email to