-
-
Notifications
You must be signed in to change notification settings - Fork 42
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
Exact split incorrect calculation #113
Labels
bug
Something isn't working
Comments
ah that's bad, will work on it |
I don't know if Javascript allows that, but I'd just use fixed-point numbers with 3 decimal digits... |
Just a +1 from my side, looking into migrating to Split Pro vom Splitwise and running into the same issue. Floats cannot represent the exact fractions needed for monetary values. |
There is a PR open for this issue: #135 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Total bill 78.30.
Tried to split it 48.70 + 29.60, but the moment I wrote 48.70, it said the balance was 29.5999999994.
When I typed that the second person is 29.60, it said the remaining is -1.4210xxxx
The text was updated successfully, but these errors were encountered: