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

Decimal places in total price aren’t rounding up properly #2281

Open
mothman1 opened this issue Aug 25, 2019 · 0 comments

Comments

@mothman1
Copy link

commented Aug 25, 2019

Total price sometimes don’t round up properly. For example,
Product A £11.76
Product B £7.43

You would expect Total to be £19.19 but instead total might become £19.20. After debugging, this happens when the third decimal place forces round up, so this what actually happens when total is calculated:
Product A £11.76345
Product B £7.43789

Total now is £19.20134 —> £19.20

Any help is highly appreciated. I’ve tried to force round up, floor, show more decimal places but no luck. I must be missing something.

@mothman1 mothman1 closed this Aug 25, 2019

@mothman1 mothman1 reopened this Aug 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.