mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-14 13:03:56 +03:00
d3663b818e
This allows period and comma to be used for decimal point and digit group separator or vice versa, and also flexible digit groups. See http://en.wikipedia.org/wiki/Decimal_separator . Digit group separators are possibly not worth the trouble and might not stay.
39 lines
578 B
Plaintext
39 lines
578 B
Plaintext
# a default commodity defined with the D directive will be used for any
|
|
# commodity-less amounts in subsequent transactions.
|
|
#
|
|
bin/hledger -f- print
|
|
<<<
|
|
|
|
; no default commodity
|
|
2010/1/1 x
|
|
a 1000
|
|
b
|
|
|
|
; pound, two decimal places, no digit group separator
|
|
D £1000.00
|
|
|
|
2010/1/1 y
|
|
a 1000
|
|
b
|
|
|
|
; dollar, comma decimal point, three decimal places, no digit group separator
|
|
D $1,000
|
|
|
|
2010/1/1 z
|
|
a 1000
|
|
b
|
|
|
|
>>>
|
|
2010/01/01 x
|
|
a 1000
|
|
b -1000
|
|
|
|
2010/01/01 y
|
|
a £1000.00
|
|
b £-1000.00
|
|
|
|
2010/01/01 z
|
|
a $1000,000
|
|
b $-1000,000
|
|
|