Just closing the loop on this. I combed through all the information you
posted links to, which was extremely helpful and thorough. Thank you. Turns
out my use cases were pretty explicitly discussed in the historical notes
portion of your precision documentation. In case others find it helpful
here were my findings:

1. Results from queries were outputting many decimal places due to not
using display context. This was solved and merged into the master in April
2022. My install is older than that, so an update should solve this without
issue.

2. Results from printer were also outputting many decimal places. The above
referenced notes indicate this is on purpose for round tripping reasons.
Thus, I can just solve this by quantizing my decimals as part of my script
to get the desired results.

On Tue, Jul 26, 2022, 1:48 PM William Bean <[email protected]> wrote:

> Thanks Martin. That's very helpful. I'm going to digest it a little bit
> and gather my thoughts. I have 2 use cases which have come up, one for
> reporting and the other for mathematically calculated posting amounts. I'll
> put together some examples of the use cases when I get a little more time.
>
> Side note, thank you for your hard work putting Beancount together. It's
> truly fantastic software and I love customizing it to suit my needs. I've
> been using it for 2 years now and it's hard to remember how I did my
> finances beforehand.
>
> On Mon, Jul 25, 2022, 10:30 PM Martin Blais <[email protected]> wrote:
>
>> Search the list for various discussion of the current limitations of the
>> stable branch.
>> See also the discussion here (v3 doc):
>>
>> https://docs.google.com/document/d/1qPdNXaz5zuDQ8M9uoZFyyFis7hA0G55BEfhWhrVBsfc/edit#heading=h.vy9jgsdfwj8e
>>
>> By "producing" it would be useful to know what you mean; what the
>> different tools may render and what is actually stored may differ.  Tools
>> that produce reports may round in different ways. I'm not sure what you
>> refer to.
>>
>>
>>
>> On Mon, Jul 25, 2022 at 4:49 PM William Bean <[email protected]> wrote:
>>
>>> I've been struggling with the best way to produce beancount results with
>>> a specific number of decimal places. Really this comes about when I need to
>>> perform math via plugin (or fava extension), which generates decimals
>>> carried out many digits. I reviewed the display_context.py file, but it
>>> does not seem to have a rounding or trimming functionality to a specific
>>> amount of decimal places in it (unless I am misinterpreting the precision
>>> property).
>>>
>>> Is there a good way to trim down decimal places within beancount's
>>> features or is this typically accomplished with python functionality to
>>> sort of brute force what you want to see?
>>>
>>> --
>>> 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/55feb139-e42d-4bd6-be82-7a4596992933n%40googlegroups.com
>>> <https://groups.google.com/d/msgid/beancount/55feb139-e42d-4bd6-be82-7a4596992933n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Beancount" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/beancount/qqCyu-8Zbmw/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beancount/CAK21%2BhMEHFATg0tT81e%2BvgXvtWdV4S%2BzwjfszGDw%3D4ofM5bepw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/beancount/CAK21%2BhMEHFATg0tT81e%2BvgXvtWdV4S%2BzwjfszGDw%3D4ofM5bepw%40mail.gmail.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 on the web visit 
https://groups.google.com/d/msgid/beancount/CAO0DHEBPiwO4gopk_dKR1PpK1P33jA0UWb7LDfEop%3DCNc20QZA%40mail.gmail.com.

Reply via email to