>>>>> o1bigtenor <[email protected]> writes:
> That - sir - - - -begs the question - - - what is 'average' supposed to do?
Average just takes the number of entries in a group, and divides the total by
the count. Here's the implementation:
OPTION_(report_t, average, DO() { // -A
OTHER(empty).on(whence);
OTHER(display_total_)
.on(whence, "count>0?(display_total/count):0");
});
Which means that `--average` is just a short-hand for:
--empty --display-total "count>0?(display_total/count):0"
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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/m235806bjk.fsf%40newartisans.com.