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

Ensure correctness for calculateExpenses for decimals #71

Open
mikejensen0 opened this issue Dec 5, 2023 · 0 comments
Open

Ensure correctness for calculateExpenses for decimals #71

mikejensen0 opened this issue Dec 5, 2023 · 0 comments
Labels
minor A minor improvement

Comments

@mikejensen0
Copy link
Collaborator

Ensure that no money gets lost, when splitting expenses, e.g., if someone paid 100, which should be split amongst 3 people, then they are to receive 33.33... from the two others, and this could be rounded as:

Person 1: 33.34
Person 2: 33.33
Person 3: 33.33

Which means one person gets scammed. Perhaps there could be kept track of who "overpays" such that over time, this would equalize.

@mikejensen0 mikejensen0 added the minor A minor improvement label Dec 5, 2023
@mikejensen0 mikejensen0 changed the title Ensure correctness in splitting expenses Ensure correctness for calculateExpenses for decimals Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor A minor improvement
Projects
None yet
Development

No branches or pull requests

1 participant