From 7359fdd32a97c7764dbd4fa729d76f57ca8c74da Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Tue, 11 Feb 2020 10:37:57 -0800 Subject: [PATCH] ;doc:journal: edits (#1187) [ci skip] --- hledger-lib/hledger_journal.m4.md | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/hledger-lib/hledger_journal.m4.md b/hledger-lib/hledger_journal.m4.md index 85b768a00..c8f5e6d08 100644 --- a/hledger-lib/hledger_journal.m4.md +++ b/hledger-lib/hledger_journal.m4.md @@ -477,8 +477,9 @@ For each commodity, hledger chooses a consistent format to use when displaying amounts. (Except [price amounts](#prices), which are always displayed as written). The display style is chosen as follows: -- If there is a [commodity directive](#declaring-commodities) for the commodity, - that format is used (see examples above). +- If there is a [commodity directive](#declaring-commodities) (or + [default commodity directive](#default-commodity)) for the + commodity, that format is used (see examples above). - Otherwise the format of the first posting amount in that commodity seen in the journal is used. @@ -488,11 +489,15 @@ displayed as written). The display style is chosen as follows: - Or if there are no such amounts in the journal, a default format is used (like `$1000.00`). -Transaction price amounts don't affect the amount display style -directly, but occasionally they can do so indirectly (eg when an -posting's amount is inferred using a transaction price). If you find -this causing problems, use a commodity directive to fix the display -style. +Transaction prices don't affect the amount display style directly, but +occasionally they can do so indirectly (eg when an posting's amount is +inferred using a transaction price). If you find this causing +problems, use a commodity directive to fix the display style. + +In summary: amounts will be displayed much as they appear in your +journal, with the max observed number of decimal places. If you want +to see fewer decimal places in reports, use a commodity directive to +override that. ## Transaction prices