By allowing a "3.7" amount, Beancount automatically infers that it should
use a tolerance of 0.05 USD and does corresponding rounding.
In your particular example, this might not seem appealing, but there are
many other scenarios - in particular, when cost basis is involved - where
this is the preferential choice.
Use "3.70" in order to avoid this.

Regardless, I admit that this can be a bit surprising, and I've been
pondering about adding some sort of explicit option to "fix" the
tolerances, something similar to "inferred_tolerances_default", but that
would simply override and set the final tolerance. It might even speed up
some of the parsing.



On Tue, Nov 7, 2017 at 2:23 AM, MetroWind <[email protected]> wrote:

> Hi all,
>
> So I have this entry:
>
> 2017-09-09 * "" "Meals"
>   Expenses:Food 39.97 USD
>   Expenses:Taxes:Consumer 3.7 USD
>   Liabilities:Credit:Sapphire
>
>
> However the context shows
>
> 2017-09-09 * "Hunan Impression" "Meals"
>
>   Expenses:Food                 39.97 USD
>
>   Expenses:Taxes:Consumer        3.70 USD
>
>   Liabilities:Credit:Sapphire  -43.70 USD
>
> Residual: (-0.03 USD)
>
> Tolerances: USD=0.05
>
>
> There are bunch of these cases, and my balance is now off by 0.05 USD
> (which is fine by me, but beancount always complains).  Is there a way to
> eliminate that without padding it?
>
> Thanks
>
> --
> 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 post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/beancount/4a172413-7c48-4d79-babe-08112fe09369%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/4a172413-7c48-4d79-babe-08112fe09369%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhOH9MAz-4LSK6HiAasj75hKkdaJvo%3Dtg_LP2N8%3DGVjF-Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to