Why does query() return a different set of postings depending on the locale, while .xact.posts() always returns three? I suspect this is because query() omits postings whose is_zero() returns True, while .xact.posts() always returns all postings?
Why is the result of is_zero() on a value of 0.000346
locale-dependent? I suspect that the locale-specified precision somehow
influences that decision. However I cannot see anything in the output
of localeconv() that could cause precision to go so high (frac_digits is just 2).
Why does the precision of the commodity price go as high as 18?
What is the meaning of the value returned by truncated()? It seems to make no sense at all for all but one posting in the locale-enabled cases.