bean-query not showing decimals

84 views
Skip to first unread message

redst...@gmail.com

unread,
Sep 8, 2015, 4:04:03 PM9/8/15
to Beancount
For a certain account, bean-query does not show decimals in the position column. It seems to be truncating (not even rounding). But it shows it just fine for other accounts. bean-web shows the decimals fine for the account in question.

Again, unfortunately, I don't have a minimal data file for reproduction. But I thought I'd mention it in case you've been seeing anything similar. And also ask if there's a way to force it to show two decimal points. Thanks!

Martin Blais

unread,
Sep 8, 2015, 11:56:34 PM9/8/15
to Beancount
I've been seeing this actually and filed a new ticket to look into it in the future.

The issue is that columns of just numbers aren't being rendered according their associated currency.
Selecting a column of type Amount or Position or Inventory should render better.
This stems from the fact that I wrote the code to render tables of results before I did the work on display_context, and now I probably need to revisit that to integrate this, which would be better.
Unfortunately non-trivial work this will take some time to review.
OTOH I need to implement CSV rendering very soon so I might get to it, not sure.

Juggling lots of different tasks at once (see branches).



On Tue, Sep 8, 2015 at 4:04 PM, <redst...@gmail.com> wrote:
For a certain account, bean-query does not show decimals in the position column. It seems to be truncating (not even rounding). But it shows it just fine for other accounts. bean-web shows the decimals fine for the account in question.

Again, unfortunately, I don't have a minimal data file for reproduction. But I thought I'd mention it in case you've been seeing anything similar. And also ask if there's a way to force it to show two decimal points. 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 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/3fb15803-9c65-410b-bb83-70f67dbb85b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages