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.
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
...
@@ -36,7 +36,7 @@ If rounding up was done per transaction, then the error per transaction may add
2014-06-08 day 1
A1 BBB @$5.52
C
In the above example if there is rounding up in each transaction then the overall result will be off by few cents.
This problem does not occur in ledger as rounding is deffered till the last point that is at the time of display.