You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Not sure if this is still an open project that you are willing to put more work into, but if yes:
Due to the naturally imprecise representation of decimals in binary (e.g. 0.1 + 0.1 + 0.1 == 0.3 yields False), emptying an account does not always leave the account balanced. That is, if you have amount x on account A of a ledger, and you withdraw amount x, the balance is not always (BALANCED, 0) and even throws an assertion error in the booking operation, if the AccounSide ends on the wrong side. An option would be to use Decimal types from the decimals module.
The text was updated successfully, but these errors were encountered:
Not sure if this is still an open project that you are willing to put more work into, but if yes:
Due to the naturally imprecise representation of decimals in binary (e.g. 0.1 + 0.1 + 0.1 == 0.3 yields False), emptying an account does not always leave the account balanced. That is, if you have amount x on account A of a ledger, and you withdraw amount x, the balance is not always (BALANCED, 0) and even throws an assertion error in the booking operation, if the AccounSide ends on the wrong side. An option would be to use Decimal types from the decimals module.
The text was updated successfully, but these errors were encountered: