I tried this when I first started using Ledger 4 years ago. There are a number of other problems that come up if you try to use only bare numbers. Bare numbers are treated differently than commodities internally. You will save yourself many headaches if you just slap a euro sign on the numbers.
On Sun, Jul 30, 2017 at 02:49 hopsti <[email protected]> wrote: > Hello! > > As I use only one commodity (euros), I want to record all my transactions > in bare numbers. But the generated reports look ugly because the numbers > are rounded so that they get different numbers of decimal places, and then > indiscriminately flushed right. > > For example, for this Ledger file: > > 2017-07-14 > A:A1 135.64 > A:A2 26.00 > A:A3 -0.17 > A:A4 14.00 > L:L1 -82.10 > L:L2 -77.40 > L:L3 -6.74 > X > > output from the command "ledger bal A L" looks like this: > > 175.47 A > 135.64 A1 > 26 A2 > -0.17 A3 > 14 A4 > -166.24 L > -82.1 L1 > -77.4 L2 > -6.74 L3 > -------------------- > 9.23 > > I tried adding the line > > D 1000.00 > > to the beginning of the ledger file, but this did not affect the output. > > How to set the output format for bare numbers to %.2f, or at least have > the numbers line up properly? > > Cheers, > T. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Ledger" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- Craig, Corona De Tucson, AZ [image: missile_flyout] enderw88.wordpress.com -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
