created proposal doc about rounding

This commit is contained in:
tripun 2014-06-12 20:33:20 +05:30
parent 19d32244e3
commit 7f02b677fd

18
rounding/proposal.md Normal file
View file

@ -0,0 +1,18 @@
Some documentation is already there on internal representation of numbers in ledger. It stores numbers as rational numbers avoid rounding problems arising of floating point representation.
http://www.ledger-cli.org/3.0/doc/ledger3.html#Specifying-Amounts
The only time when rounding occurs is while displaying. But there are some other rounding problems in accountancy and it will be good to have a discussion on them.
From the point of view of accountants,
1. Control over displayed precision
There is no option to force a desired display precision. There is no option to increase or decrease display precision via command line.
2. Too much accuracy.
It is good that ledger is very accurate in calculations but it sometimes becomes inconsistent with real world practices due to this accuracy. At times we may need to truncate some amounts even though amounts specified in the journal may be of higher precision. Uptill now, the precision is really controlled by amounts and they are always rounded and not truncated.
3. Accumulated inaccuracy
Small amounts matters when they accumulate to significant amounts in total. If rounding up is done per transaction then according to ledger principle even if the transaction is balanced and the overall balance too, but the actual balance must include this significant amount too.