hledger/tests/amounts.test
Simon Michael d3663b818e parsing: better international number format support (#32)
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.
2011-01-19 12:32:18 +00:00

25 lines
304 B
Plaintext

# 1. a no-commodity amount with a unit price
bin/hledger -f - print
<<<
2010/1/1 x
a 1 @ $2
b
>>>
2010/01/01 x
a 1 @ $2
b -1 @ $2
# 2. with a total price
bin/hledger -f - print
<<<
2010/1/1 x
a 2 @@ $2
b
>>>
2010/01/01 x
a 2 @@ $2
b -2 @@ $2