tbm / test

0 stars 0 forks source link

Figure out how to disable tolerance inference on numbers output from arithmetic expressions #56

Open tbm opened 9 years ago

tbm commented 9 years ago

Original report by Martin Blais (Bitbucket: blais, GitHub: blais).


I'm not sure I understand how the divide operator interacts with the recent tolerance changes, if it does. For example, if I do this:


option "title" "Main accounts" option "operating_currency" "USD"

1999-01-01 open Liabilities:Credit-Card 1999-01-01 open Expenses:Utility-Bill

2000-01-01 * "Power company" Liabilities:Credit-Card -331 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD Expenses:Utility-Bill 331/12 USD

I get: bean-check output: divide.bc:7: Transaction does not balance: (-2.8E-25 USD)

Is there a recommended way to handle such situations without having to add an explicit rounding error posting?