>>>>> tripun goel <[email protected]> writes: > As far as I understand, ledger keeps a list of amounts from each post with > balance object , before displaying a value function is called and then it > iterates again through the list. The amounts are then valued and added to > the balance. The total is accurate because there is no rounding in any > calculation here. Why this is needed? I think it has more to do with object > oriented design the ledger has. A balance value is value equivalent amounts > valued determined by market valuation at specific time. Any better > explanation will be helpful. if we round per transaction and keep an > adjustment account with each commodity doesn't seems to be a good > idea. Although , I have not investigated this path but I feel it will be > more complex. > > Why I need to sort? iterating through the sorted lists it will be easier to > round subtotals and hence matching the multiplication of total of quantity > * current price .
Tripun, I really did not understand anything from these two paragraphs. Can you give some concrete examples of (1) what you think the problem is, and (2) what your proposed solution would look like? I still cannot fathom how sorting could have any relevance to the question of rounding in this case. Thanks, John -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
