Re: Setting precision for $
On Sun, May 22, 2022 at 7:57 PM Martin Michlmayr wrote: > > * David Glasser [2022-05-22 18:41]: > > I sold some stock at a price valued in half-cents. I modeled this in ledger > > like > > > > 2022-05-13 Buyer > > Bank $100.50 > > Shares -100 STOCK @ $1.005 > > > > This means that Ledger now thinks that it should display every $ value with > > three digits of precision > > No, it doesn't. Price info (@ $...) is not used for precision. > > I don't get 3 digits with your example. If you really get 3 digits, > it's because of another reason. Maybe you specified 3 digits in > another transaction. You're right. By a strange coincidence I had a typo in another entry on the same day. -- glas...@davidglasser.net | flickr.com/photos/glasser/ -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CAN7QDoJswSXU%3DYr_eBgVQW6J2tFu1Of4tqUeVK1DZA9qDvprGQ%40mail.gmail.com.
Re: Setting precision for $
* David Glasser [2022-05-22 18:41]: > I sold some stock at a price valued in half-cents. I modeled this in ledger > like > > 2022-05-13 Buyer > Bank $100.50 > Shares -100 STOCK @ $1.005 > > This means that Ledger now thinks that it should display every $ value with > three digits of precision No, it doesn't. Price info (@ $...) is not used for precision. I don't get 3 digits with your example. If you really get 3 digits, it's because of another reason. Maybe you specified 3 digits in another transaction. -- Martin Michlmayr https://www.cyrius.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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/Yor3%2BkUIRN66BM/Y%40jirafa.cyrius.com.
Setting precision for $
I sold some stock at a price valued in half-cents. I modeled this in ledger like 2022-05-13 Buyer Bank $100.50 Shares -100 STOCK @ $1.005 This means that Ledger now thinks that it should display every $ value with three digits of precision, which I don't like. How can I get $ back to just two digits? I see you can specify precision with C when you define a commodity in terms of another one but I haven't done that for $... -- --- 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 ledger-cli+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ledger-cli/CAN7QDoJYTHzvOftWknEZJHkLFKR6%3DCSvPfUps_iEQ%3DFixrZy9A%40mail.gmail.com.