summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHieu Van <hieu.van@posteo.net>2020-07-17 09:37:29 +0700
committerMartin Michlmayr <tbm@cyrius.com>2020-07-21 11:34:03 +0800
commit315d428f6a3b1965b10d2477cccc71f85548490c (patch)
tree1bac4c872ef3189118cb8e71b032ee6d6f079eb1 /doc
parent0db50b5e31c85437ece1f70d52f8c3420ce35979 (diff)
downloadfork-ledger-315d428f6a3b1965b10d2477cccc71f85548490c.tar.gz
fork-ledger-315d428f6a3b1965b10d2477cccc71f85548490c.tar.bz2
fork-ledger-315d428f6a3b1965b10d2477cccc71f85548490c.zip
docs: improve the example of displaying amount in another commodity
The current one doesn't work; also Ledger has got a much neater command-line option to achieve the goal.
Diffstat (limited to 'doc')
-rw-r--r--doc/ledger3.texi11
1 files changed, 3 insertions, 8 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index aafb079f..0e05ae6f 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -1102,18 +1102,13 @@ wanted to know how many ounces of gold that would buy, in terms of the
current price of gold:
@smallexample
-$ ledger -T "@{1 AU@}*(O/P@{1 AU@})" balance checking
+$ ledger -X AU balance checking
@end smallexample
-Although the total expression appears complex, it is simply saying
-that the reported total should be in multiples of AU units, where the
-quantity is the account total divided by the price of one AU. Without
-the initial multiplication, the reported total would still use the
-dollars commodity, since multiplying or dividing amounts always keeps
-the left value's commodity. The result of this command might be:
+The result of this command might be:
@smallexample
-14.01 AU Assets:Checking
+12.50 AU Assets:Checking
@end smallexample
@menu