Hi Martin,
On 10/7/14 9:43 PM, Martin Blais wrote:
What do you do about the display precision when you have a mix of
transactions with differing precisions?
On Tue, Oct 7, 2014 at 4:37 PM, Simon Michael <[email protected]:
just in case: Have you considered or already implemented hledger's
approach for balancing transactions, which is based on display
precision ? Ie amounts are considered to balance if their sum
appears to be zero when it's rendered using the canonical display
precision. This seems to fit user expectations well.
How do you define the canonical display precision?
You mean the precision derived from the legs that have a simple explicit
amount?
hledger's "canonical display precision" for a commodity is the highest
precision seen among all posting amounts in that commmodity (across all
transactions). (http://hledger.org/manual#amount-display-styles)
Internally, all amounts have the same precision: that of the Double type
used by the current implementation.
Did that answer your questions ?
--
---
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.