ravindracs0071 / tippytipper

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

$10 split by three is showing $3.33 #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set total amount to $10.00
2. Split bill by three people
3. Shows total as $3.33.  

What is the expected output? What do you see instead?
Should be $3.34/each to not be under $10.00 when summed.

Original issue reported on code.google.com by mand...@gmail.com on 18 May 2010 at 4:00

GoogleCodeExporter commented 9 years ago
It only happens when there is a tax being excluded.

Original comment by mand...@gmail.com on 22 May 2010 at 11:22

GoogleCodeExporter commented 9 years ago
Splitting a bill will now divide the amount by the number of people and take the
floor.  For the total, it will divide the amount by the number of people and 
take the
ceil.  The difference in the bill/tip/tax amounts added together and the total 
amount
is a new "adjustment" amount.  This is to prevent under-paying of the bill (for
example $10 bill / 3 people = $3.34 total each.  $3.33 would be a penny short 
when
summed up).

Original comment by mand...@gmail.com on 23 May 2010 at 6:48