@diprex83 > Define the characters to be used
We can do that in the journal - that's what you are doing with the commodity or decimal-mark directives. But those directives don't appear in print's output (yet, at least) - so the decimal mark is forced there.
@diprex83 To be precise: "1,000 JPY" is not printed because it's ambiguous in pipelines like
hledger print ... | hledger -f ....
But it's not in your journal (with commodity/decimal-mark directive).
So after import you could fix it with (eg):
sed -E -e 's/([0-9])\./\1/g' -i $LEDGER_FILE.
@diprex83 In short: it won't print amounts with a digit group mark but without a decimal mark. It can print both, neither, or just a decimal mark. (To avoid ambiguity.)
@diprex83 PS: decimal-mark was probably the wrong suggestion, since it is file-wide not per-commodity. But commodity directives for USD and for JPY should work. Remember to write a decimal mark in both directives.
@DanielW_Kiwi@davefuller I was intrigued, found the book and paper linked at https://t.co/j19cGuhrN4 , so gave David Ellerman's paper a re-read (re-skim..)
I think #hledger and similar programs use exactly the model it describes: Single-sided accounts, Signed numbers, Multiple dimensions (commodities).
@kerckhove_ts@MatthewCroughan@locallycompact You might ask, should #hledger auto-generate a small "rounding adjustment" posting in such cases to help keep balances exact ? Possibly a good idea! I think it would annoy some but be very satisfying to others.
@kerckhove_ts@MatthewCroughan@locallycompact This is an intentional convenience since people often want to use data from brokerages etc, which is usually inexact and where the small decimals in prices and balances are often irrelevant. So, we get to choose the precision we want enforced.
Related: https://t.co/J7GmCNA9UF
โTo stay present in everyday life, it helps to be deeply rooted within yourself; otherwise, the mind, which has incredible momentum, will drag you along like a wild river.โ - Eckhart Tolle
Rince vs. Damhsa (Rinkeh vs. Dow-suh)
Damhsa means the dancing of humans, while rince is what the young calf would be doing when it was let out first out of the stables.
From Pap Murphy, Leithinis an Mhuirthead, Co Maigh Eo
Audio edited by @Brine_Byrne
Photo by @lvarian
How to set up hoogle in a stack project:
stack hoogle --rebuild # install hoogle, build haddocks & hoogle db, takes a long time
$BROWSER http://localhost:8080 & # safari won't work
stack --verbosity=warn hoogle --server # start web app
#haskell