journal: balance assertion/precision doc tweaks (#941)

This commit is contained in:
Simon Michael 2019-01-07 08:33:01 +00:00
parent c331be7f23
commit 9acce249bb

View File

@ -468,16 +468,16 @@ flag or `real:` query.
### Assertions and precision ### Assertions and precision
A commodity directive which limits the display precision, can affect assertions. A [commodity directive](http://hledger.org/journal.html#declaring-commodities)
which limits the display precision, can affect assertions.
In general, hledger balance assertions should pass or fail as you would In general, hledger balance assertions should pass or fail as you would
expect from visual inspection and manual summing of the amounts shown expect from doing visual inspection and manual arithmetic with the amounts
in reports and error messages. shown in reports and error messages, ie at display precision.
More specifically, assertions pass if the difference between asserted More specifically, currently assertions pass if the difference between asserted
and actual amounts appears to be zero, when rendered to the greater of and actual amounts appears to be zero, when rendered to the greater of
the standard display precision and the asserted amount's precision. the standard display precision and the asserted amount's precision.
Here are some examples of this in action. Here are some examples of this in action.
Asserting the exact balance: Asserting the exact balance: