I have a retirement account that has "shares" where the number of shares
is reported to me in four decimal places. The share price is done in
dollars, also computed out to four decimal places. To get all this setup
correctly in Ledger my currency amounts in US dollars are now computed
to eight decimal places, no joke.

So *all* my dollars are shown in eight decimal places, even those in
accounts where it's not relevant, like checking. This just gives me an
amount like $85.32000000. The zeroes add visual noise, though they don't
really hurt anything.

I now have a separate little program that I use to strip off these extra
zeroes. Is it possible to do this inside of Ledger using a value
expression or a format string? It seems to me it's not possible to round
using a value expression, as there is no kind of truncate or round
function; and I couldn't see how to do it with a format string,
essentially because by the time the format string sees the output it's a
string rather than a number.

Thanks.
Omari

Reply via email to