Skip to content

Loses precision on amounts! #37

Open
@tbm

Description

b2l turns 10.2253 units into 10.22 units, which means the file no longer balances.

It seems the precision is influenced by other transactions. If the transaction is followed by 2 or more with lower precision, that precision is adopted. If there's only 1 other transaction, it's not lost.

2022-12-21 * "Investment"
    Assets:Investments  10.2253 GB00B80QFW04 {2.984917082 GBP}
    Assets:Investments

2022-12-21 * "Investment"
    Assets:Investments   1.12 GB00B80QFW04 {2.984917082 GBP}
    Assets:Investments

2022-12-21 * "Investment"
    Assets:Investments   2.23 GB00B80QFW04 {2.984917082 GBP}
    Assets:Investments

Output:

2022-12-21 * Investment
    Assets:Investments               10.23 "GB00B80QFW04" {2.984917082 GBP}
    Assets:Investments
...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions