Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Decimal places in total price aren’t rounding up properly #2281
Total price sometimes don’t round up properly. For example,
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:
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.