Rounding in Ledger-CLI

14 views
Skip to first unread message

Felipe Mica

unread,
Sep 13, 2021, 4:45:19 PM (12 days ago) Sep 13
to Ledger
Hi again!

I have this commodity:

commodity R$
  note Reais Brasileiros
  format R$ 1.000,00
  nomarket
  alias BRL
  default


I declare some expenses like Service A, B, C etc. in dollars. Why when I use the option --price to convert to Reais (BRL / R$) the values aren't rounded as two decimal places as I defined in "format" directive?

The result is:

R$ 35,65325890612810956054        Service A
R$ 63,66653376094305278669        Service B
R$ 126,69640218427667504551        Service C
R$ 188,02849637398514923001        Service D

How can I force rounding?

Thank you.
Reply all
Reply to author
Forward
0 new messages