How showing fava statements decimal?

87 views
Skip to first unread message

pannai...@gmail.com

unread,
May 17, 2018, 7:25:05 AM5/17/18
to Beancount
I guess some option not setup,bu I con't found it.
Currently statements like:



I need it chanage to like this:




Martin Michlmayr

unread,
May 17, 2018, 7:30:49 AM5/17/18
to bean...@googlegroups.com
Put this in your beancount file:

option "render_commas" "true"

or

option "render_commas" "false"

* pannai...@gmail.com <pannai...@gmail.com> [2018-05-17 04:25]:
> I guess some option not setup,bu I con't found it.
> Currently statements like:
>
> <https://lh3.googleusercontent.com/-iat7M5C3my4/Wv1mKAqneOI/AAAAAAAAAEE/biqRSs_2ox897AONobe88M8IziuVRRZdACLcBGAs/s1600/ScreenClip.png>
>
>
>
> I need it chanage to like this:
>
>
> <https://lh3.googleusercontent.com/-2JCfI8t68tc/Wv1mgOv9N4I/AAAAAAAAAEM/tnTvsfa3I1YDHTRlqx2NTvBnljMeZvPZQCLcBGAs/s1600/ScreenClip%2B%255B1%255D.png>
>
>
>
> --
> 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/6ceefa67-032b-4dd8-a1d5-e2afbab1b1a9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


--
Martin Michlmayr
https://www.cyrius.com/

pannai...@gmail.com

unread,
May 17, 2018, 10:49:56 AM5/17/18
to Beancount
I need number of account show decimal,like 5.7777、5.663,is decimal not commas.

在 2018年5月17日星期四 UTC+8下午7:30:49,Martin Michlmayr写道:

Jason Chu

unread,
May 17, 2018, 11:59:45 AM5/17/18
to bean...@googlegroups.com
I'm pretty sure the number of decimal places is controlled by the input to beancount. If you always refer to your units as whole numbers, you'll see no decimals, but if you use 1.00, you'll see 1.00 in all the reports.

pannai...@gmail.com

unread,
May 18, 2018, 3:35:40 AM5/18/18
to Beancount

I'm writen in .beancount file transactions with decimal.but assets of balance sheet showing integer look:




在 2018年5月17日星期四 UTC+8下午11:59:45,Jason Chu写道:

Zhuoyun Wei

unread,
May 18, 2018, 12:09:38 PM5/18/18
to bean...@googlegroups.com
I believe this may have something to do with the precision of inferred
numbers. Try padding every number in your file to 2 decimal digits:

95 CNY -> 95.00 CNY
0.2 CNY -> 0.20 CNY

... and see if that solves your issue.


2018-05-18 00:35:39 pannai...@gmail.com <pannai...@gmail.com>:
> I'm writen in .beancount file transactions with decimal.but assets of balance sheet showing integer look:
>
> [ScreenClip]
>
> [ScreenClip]
>
>

--
Zhuoyun Wei
signature.asc

pannai...@gmail.com

unread,
May 18, 2018, 8:45:28 PM5/18/18
to Beancount
good work,3Q.

在 2018年5月19日星期六 UTC+8上午12:09:38,Zhuoyun Wei写道:

Martin Blais

unread,
May 18, 2018, 8:49:18 PM5/18/18
to Beancount
Yes, that's probably the issue.
Running this command will output the inferred display precisions:
  bean-doctor display_context
One more reason to add an option to explicitly override and set the output precision. 
I think this will be used by everyone (probably including me).


--
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.

pannai...@gmail.com

unread,
May 24, 2018, 10:26:19 AM5/24/18
to Beancount
The command is error when whole pasted  into cygwin...
So,I need know that what option control display decimal(or call fractional).
If this option is dcontext of beancount,how write in beancount-file? 
Like:option "dcontext" "CNY" "sign=1"? or e.g. something?



在 2018年5月19日星期六 UTC+8上午8:49:18,Martin Blais写道:
Yes, that's probably the issue.
Running this command will output the inferred display precisions:
  bean-doctor display_context
One more reason to add an option to explicitly override and set the output precision. 
I think this will be used by everyone (probably including me).

On Fri, May 18, 2018 at 12:09 PM, Zhuoyun Wei <wzy...@wzyboy.org> wrote:
I believe this may have something to do with the precision of inferred
numbers. Try padding every number in your file to 2 decimal digits:

95 CNY -> 95.00 CNY
0.2 CNY -> 0.20 CNY

... and see if that solves your issue.


2018-05-18 00:35:39 pannai...@gmail.com <pannai...@gmail.com>:
> I'm writen in .beancount file transactions with decimal.but assets of balance sheet showing integer look:
>
> [ScreenClip]
>
> [ScreenClip]
>
>

--
Zhuoyun Wei

--
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.

Martin Blais

unread,
May 28, 2018, 2:39:53 AM5/28/18
to Beancount
http://furius.ca/beancount/doc/options
See option "inferred_tolerance_default."



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.
Reply all
Reply to author
Forward
0 new messages