On 10/08/23 06:43, Eric Altendorf wrote:
beanquery> SELECT
date > maxwidth(narration, 20),
account,
10,
round(cost(position), 4) as amount
FROM > has_account("PnL") AND
year(date) = 2021
WHERE
account = "Income:PnL" AND > abs(number) < 100
LIMIT 5
Why do you filter by account twice?
I've dug around the DisplayContext updating code and can't figure out
what's going on. Any ideas?
The number of decimal digits used to represent amounts is determined by
the content of the ledger at parsing time, not by the data values in the
column.
The algorithm used to determine the number of decimal digits to use
looks at the statistical distribution of the number of digits in all the
numeric values used paired with a given currency.
Why do you use 25 decimal digits for USD amounts in your ledger?
Cheers,
Dan
--
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/818860fe-2098-4174-0a18-075c49609b53%40grinta.net.