should decimal point/digit group style be commodity-specific ?

31 views
Skip to first unread message

Simon Michael

unread,
Sep 4, 2016, 3:24:42 PM9/4/16
to hledger, ledger-cli, bean...@googlegroups.com
In hledger, each commodity/currency has its own style of decimal point and digit grouping.

We could simplify this and say decimal point and digit group style are the same across all commodities, perhaps reducing confusion and hassle, cf https://github.com/simonmichael/hledger/issues/395 . Is this a good idea, or would it be too limiting ?

Cc'ing the Ledger & beancount communities to ask them too.

John Wiegley

unread,
Sep 4, 2016, 7:59:11 PM9/4/16
to Simon Michael, hledger, ledge...@googlegroups.com, bean...@googlegroups.com
>>>>> "SM" == Simon Michael <si...@joyful.com> writes:

SM> We could simplify this and say decimal point and digit group style are the
SM> same across all commodities, perhaps reducing confusion and hassle, cf
SM> https://github.com/simonmichael/hledger/issues/395<https://github.com/simonmichael/hledger/issues/395>
SM> . Is this a good idea, or would it be too limiting ?

I think it would be too limiting. Maybe I could buy it for decimal style, but
for precision, I always want to see dollars with 2 points of precisions, and
stocks and retirement accounts with a precision appropriate to each account.
Limiting everything to 2 would be odd, and limiting it to anything else would
make dollars amounts seem too precise.

--
John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F
http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2

Simon Michael

unread,
Sep 4, 2016, 9:14:04 PM9/4/16
to John Wiegley, hledger, ledge...@googlegroups.com, bean...@googlegroups.com
True, John. I should clarify, I'm thinking about just the characters to use for decimal point and digit group separator, and the digit group sizes, but not the precision (number of digits after the decimal point) which I agree should certainly stay commodity-specific.
Reply all
Reply to author
Forward
0 new messages