New issue 381: Missing trailing zero causes wrong amount to be
inferred/interpolated
https://bitbucket.org/blais/beancount/issues/381/missing-trailing-zero-causes-wrong-amount
Jani:
Consired the following example:
```
option "operating_currency" "EUR"
1970-01-01 open Expenses:A EUR
1970-01-01 open Expenses:B EUR
1970-01-01 open Income:C EUR
1970-01-02 * "Testing" ""
Expenses:A 48.1 EUR
Expenses:B 17.49 EUR
Income:C
```
For example `bean-report` reports the amount for `Income:C` wrongly:
```
> bean-report test.ledger print
beancount/core/number.py:53: UserWarning: Fast C decimal implementation appears
to be missing; Consider installing cdecimal
warnings.warn("Fast C decimal implementation appears to be missing; "
1970-01-01 open Expenses:A EUR
1970-01-01 open Expenses:B EUR
1970-01-01 open Income:C EUR
1970-01-02 * "Testing" ""
Expenses:A 48.1 EUR
Expenses:B 17.49 EUR
Income:C -65.6 EUR
```
Also the `Posting` object contains `-65.6` in my plugin as the amount, and this
is where I actually noticed the problem. After I'm doing some expense splitting
in my plugin, `beancount` starts giving me warnings that the transaction does
not balance even if it should.
Any ideas?
This bug might be a duplicate, but I couldn't follow the other bugs, but so I
opened a new one.
As a workaround, switching `48.1` to `48.10` fixes this problem.
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/20190319184107.5365.58439%40celery-worker-108.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.