Showing decimals in fava

680 views
Skip to first unread message

Oon-Ee Ng

unread,
Jan 16, 2017, 4:18:18 PM1/16/17
to Beancount
I'm not sure if it's a function of number of accounts or filters (or
lack thereoff) but I can't seem to get fava to show decimals any more.
It just shows rounded amounts, which is fine most-times, but when I
want to reconcile accounts and make sure I haven't missed anything it
gets to be a hassle.

What am I missing?

Oon-Ee Ng

unread,
Jan 31, 2017, 10:35:23 PM1/31/17
to Beancount
Anyone?

Jason Chu

unread,
Feb 1, 2017, 12:59:02 AM2/1/17
to Beancount
Do you have any transactions that are missing decimal places?  I believe beancount infers tolerances based on your input, so if all/most/some of your transactions in that account are missing the cents, it might think that that particular account doesn't need cents.

You could also check beancount and fava options, you may have modified a tolerance option.

--
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 beancount+...@googlegroups.com.
To post to this group, send email to bean...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAGQ70evNkK6EO%2BVf%3D-U4jYpqOVZtYSMn5zA3RtgtykEDbJoRyA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Oon-Ee Ng

unread,
Feb 1, 2017, 1:31:13 AM2/1/17
to bean...@googlegroups.com
My options are very limited. Basically operating_currency, a custom
option for fava (to use extensions), and the auto_accounts plugin.

I have not modified a tolerance option, and furthermore I believe
that's not the case here as sometimes (randomly) I do see 2 decimal
places. Setting option "inferred_tolerance_default" "*:0.001" doesn't
change the behaviour I'm seeing.
> https://groups.google.com/d/msgid/beancount/CAFFHUgsd%2BtM2iih5gx_dEqBR_E3UeGQeZQUsK9SRjB3XPkGGKQ%40mail.gmail.com.

Dominik Aumayr

unread,
Feb 1, 2017, 2:00:49 AM2/1/17
to Beancount
Can you come up with a limited example file?
And what does beancount itself (when running from the command line) show?
> To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAGQ70etTPUOqr5uOqZjbotXyMiN83iSc_aXR6jj7_VPSOPxsdA%40mail.gmail.com.

Oon-Ee Ng

unread,
Feb 2, 2017, 8:56:55 PM2/2/17
to bean...@googlegroups.com
Sorry, but the problem doesn't always happen and hence it's tough to come up with a limited example file. I'm okay to share (privately) my current Accounts file with someone who wants to take a look, there's nothing terribly private there besides my salary in a 3rd-world distant nation.

bean-report shows decimal places, at the least. Tried income and balsheet for that. But bean-web doesn't. What else should I try?


>>> To post to this group, send email to bean...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/beancount/CAGQ70evNkK6EO%2BVf%3D-U4jYpqOVZtYSMn5zA3RtgtykEDbJoRyA%40mail.gmail.com.
>>> 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

>> To post to this group, send email to bean...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/beancount/CAFFHUgsd%2BtM2iih5gx_dEqBR_E3UeGQeZQUsK9SRjB3XPkGGKQ%40mail.gmail.com.
>> 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 beancount+unsubscribe@googlegroups.com.

> To post to this group, send email to bean...@googlegroups.com.
> 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 beancount+unsubscribe@googlegroups.com.

To post to this group, send email to bean...@googlegroups.com.

Oon-Ee Ng

unread,
Jun 29, 2017, 12:55:05 AM6/29/17
to bean...@googlegroups.com
Bringing this up again as it's bugging me yet again. Do I have to enter all/most of my data with 2 decimal places to get decimal output? Isn't there a way to fix the precision I want for display (both in bean-web and, I presume, in fava)?

Oon-Ee Ng

unread,
Jun 29, 2017, 1:37:15 AM6/29/17
to bean...@googlegroups.com
A quick script later it appears that yes, altering my beancount file to add .00 to whole number transactions 'works'. Will probably find a way to get a fava hook for that, then.

Martin Blais

unread,
Jun 30, 2017, 1:17:05 AM6/30/17
to Beancount
It would probably be a good idea to allow the user to override the displayed currency by specifying it as an option.


Martin Blais

unread,
Jun 30, 2017, 1:18:55 AM6/30/17
to Martin Blais, Beancount
Reply all
Reply to author
Forward
0 new messages