Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite "You have $X left to budget" Rounding Error #3

Open
ScottGeilen opened this issue Nov 3, 2020 · 0 comments
Open

Infinite "You have $X left to budget" Rounding Error #3

ScottGeilen opened this issue Nov 3, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@ScottGeilen
Copy link
Owner

When budgetting, it is impossible to finish due to rounding error. $158.92 ends up being something like $158.9200000000000000001.

You have $158.92 left to budget.
Budget category: rent
Budget amount: $158.92
Please input a budget amount smaller than paycheck amount.
Budget amount: $158.9
You will allocate $158.90 for rent
You have $.02 left to budget.
Budget category: other
Budget amount: $.02
Please input a budget amount smaller than paycheck amount.
Budget amount: $.01
You will allocate $.01 for other
You have $.01 left to budget.
Budget category: other1
Budget amount: $.01
Please input a budget amount smaller than paycheck amount.
Budget amount: $.01
Please input a budget amount smaller than paycheck amount.

@ScottGeilen ScottGeilen added the bug Something isn't working label Nov 3, 2020
@ScottGeilen ScottGeilen self-assigned this Nov 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant