I'll look at adding an option to set it directly, this causes a lot of friction.
On Tue, Mar 5, 2019 at 11:51 AM <[email protected]> wrote: > I just encountered this myself and I wanted to write down what I figured > out. > > Beancount uses a "display context" to track statistics about precisions it > sees in the input. Fava displays numbers using the "most common" precision. > I guess this is the "mode" of the precisions Beancount has seen in a file: > https://bitbucket.org/blais/beancount/src/945f4154f1af6b07674355c1798a27ff5d6c2794/beancount/core/display_context.py?at=default&fileviewer=file-view-default#display_context.py-163 > > It seems that Beancount may not track this number across files -- moving a > bunch of transactions from a "main" file into a file imported using the > "include" directive can change the precision. > > As far as I know there is no parameter or option you can use to set this > "display context" precision. > > Ethan > > On Wednesday, December 12, 2018 at 6:34:05 AM UTC-5, Roland Everaert wrote: >> >> Fava is effectively much better than bean-web. However, it still suffer >> from the fact that most columns are rounding-up values to the next integer >> instead of displaying the real number with its decimals :( >> >> I hope this will be fixed soon, or maybe their is some parameters I can >> modify to set the precision to 1 or 2 digits after the decimal point. >> >> Le mercredi 28 novembre 2018 16:29:26 UTC+1, Roland Everaert a écrit : >>> >>> Is bean-query also affected by the same limitation? >>> >>> I will try fava when times permit, thanks. >>> Martin Blais writes: >>> >>> > On Fri, Nov 23, 2018 at 6:46 AM Roland Everaert <[email protected]> >>> > wrote: >>> > >>> >> >>> >> Thanks for the link. >>> >> >>> >> What will be deleted? bean-web? >>> >> >>> > >>> > Yes, eventually, or if anything, it would be replaced by a bare-bones >>> > minimal thing fed by SQL queries only. >>> > Please find long email on this list from previously. >>> > Switch to Fava, it's much better. >>> > >>> > >>> > >>> > I also think that adding some option in the beancount file, with >>> regards >>> >> to precision, is way better, because it is 100% predictable. >>> >> >>> > >>> > I agree. >>> > >>> > >>> > Martin Blais writes: >>> >> >>> >> > Tolerances and precision for rendering are inferred, see this doc: >>> >> > http://furius.ca/beancount/doc/tolerances >>> >> > I don't remember if bean-web has ever been converted to use those >>> though. >>> >> > It's bound to be deleted anyway, not going to update it. >>> >> > >>> >> > I'd like to add explicit options to force a desired precision at >>> some >>> >> > point, this seems like a better default than atempting to infer >>> >> everything >>> >> > automatically. >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > On Wed, Nov 21, 2018 at 12:13 PM Roland Everaert < >>> [email protected]> >>> >> > wrote: >>> >> > >>> >> >> Hello, >>> >> >> >>> >> >> How can I tell bean-web the number of digits to display after the >>> >> period? >>> >> >> >>> >> >> I often see, in the balance sheet to name one page, thatvalues are >>> >> rounded >>> >> >> and no decimal is shown. >>> >> >> >>> >> >> I want to see number with 1 or 2 digits after the decimal comma. >>> >> >> >>> >> >> Example: >>> >> >> >>> >> >> - Current configuration >>> >> >> Real value: 3.67 >>> >> >> Displayed value: 4 >>> >> >> >>> >> >> - Expected configuration >>> >> >> Real value: 3.67 >>> >> >> Displayed value: 3.67 >>> >> >> >>> >> >> I have seen some section about rounding and tolerance but my >>> >> comprehention >>> >> >> is that they have nothing to do with how numbers are displayed >>> with >>> >> >> bean-web. >>> >> >> >>> >> >> >>> >> >> Roland. >>> >> >> >>> >> >> -- >>> >> >> 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/98d7106b-8167-4591-acd7-e9aaeca1ebf7%40googlegroups.com >>> >> >> < >>> >> >>> https://groups.google.com/d/msgid/beancount/98d7106b-8167-4591-acd7-e9aaeca1ebf7%40googlegroups.com?utm_medium=email&utm_source=footer >>> >> > >>> >> >> . >>> >> >> For more options, visit https://groups.google.com/d/optout. >>> >> >> >>> >> >>> >> >>> >> -- >>> >> Luke, use the FOSS >>> >> >>> >> Sent from Emacs >>> >> >>> >> -- >>> >> 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/87va4orp8t.fsf%40gmail.com. >>> >> For more options, visit https://groups.google.com/d/optout. >>> >> >>> >>> >>> -- >>> Luke, use the FOSS >>> >>> Sent from Emacs >>> >> -- > 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/1a8ce794-38bf-4c63-97c8-db4c8c33785b%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/1a8ce794-38bf-4c63-97c8-db4c8c33785b%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%2BhMoRpL9LBU%2B4ju8ZhaLTgZtJGC1uJfmBBiPCJwK6Omx%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
