ravindracs0071 / tippytipper

Automatically exported from code.google.com/p/tippytipper
1 stars 0 forks source link

Total off by one with 0% tip and 34% tax #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set Tax rate to 34%
2. Enter Bill $15.15
3. Set Tip to 0%
4. Total is $15.16

What is the expected output? What do you see instead?
Should be $15.15

Original issue reported on code.google.com by mand...@gmail.com on 12 May 2010 at 2:30

GoogleCodeExporter commented 9 years ago
Also happens when tax rate is 28%

Original comment by mand...@gmail.com on 12 May 2010 at 2:32

GoogleCodeExporter commented 9 years ago
Total is $15.14 with tax rate set to 43%

Original comment by mand...@gmail.com on 12 May 2010 at 2:33

GoogleCodeExporter commented 9 years ago
The tax rate was being calculated by the rounded bill amount, not the original 
bill
amount, therefore if the bill amount was rounded, then it would possibly make 
the tax
rate round incorrectly.

Original comment by mand...@gmail.com on 23 May 2010 at 12:04