Simon Michael
d4545966b5
amount code, test cleanups
2011-08-31 00:40:21 +00:00
Simon Michael
379184fd31
Amount haddock & code cleanups
2011-08-30 13:16:30 +00:00
Trygve Laugstol
28dbb8864f
Adding basic ledger FORMAT parser.
2011-06-20 21:33:26 +00:00
Simon Michael
5084280879
imports, api cleanup
2011-05-28 04:11:44 +00:00
Simon Michael
505d677461
docs: haddock fixes
2011-04-18 06:36:00 +00:00
Simon Michael
b2f439eb11
try showing integral "maxprecision" amounts without the .0 (except in add's defaults, where it helps)
2011-01-20 00:17:32 +00:00
Simon Michael
bfe935e18c
fix a sign bug with negative total-priced (@@) amounts
2011-04-22 13:40:55 +00:00
Simon Michael
091ec4e51f
clarify that amount arithmetic does not handle multiple commodities
2011-04-22 13:44:08 +00:00
Simon Michael
137cc8292e
amount cleanups
2011-01-19 23:27:11 +00:00
Simon Michael
b159f74a4c
zero amounts have no sign or commodity, and amounts with different prices are aggregated, like ledger
2011-04-22 13:50:05 +00:00
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
Simon Michael
dd9e78a67a
reorganize tests
2010-12-27 20:26:22 +00:00
Simon Michael
e03ada3bd3
parsing: support @@ syntax specifying total price
2011-01-15 02:04:53 +00:00
Simon Michael
0d6e696699
some more tests and fixes for amount & price display precision
2010-11-14 23:29:04 +00:00
Simon Michael
811e71aba7
price precisions don't influence display precision; balancing is based on display precision ( #23 )
...
Like ledger, price amounts are now "unobserved", ie their precision does
not affect the canonical display precisions used when displaying amounts,
and transaction balancing is done based on display precision, ie amounts
are considered to balance if their sum appears to be zero when using the
canonical display precision.
2010-11-14 22:44:37 +00:00
Simon Michael
1551a6914b
still more amount display helpers
2010-11-13 15:10:06 +00:00
Simon Michael
c42496b134
sign testing for amounts
2010-07-27 23:20:20 +00:00
Simon Michael
d29b393ca2
fix a failing test, handle unicode better in errors
2010-09-05 18:18:50 +00:00
Simon Michael
4120a874d8
test zero to 8 instead of 10 places, workaround for rounding error affecting a real-world transaction
2010-05-25 22:17:54 +00:00
Simon Michael
586c824cac
display non-simple commodity names with double-quotes
...
This ensures print's output remains parseable. The other commands also
double-quote them, for consistency, like c++ ledger.
2010-05-27 01:38:23 +00:00
Simon Michael
7d4593cee9
move Ledger.* to Hledger.Data.*
2010-05-19 23:08:53 +00:00