Open Zer0Legion opened 7 months ago
Thank you for pointing this out. This issue is because of rounding, e.g. 14.205 gets rounded to 14.21. In real life, when we split $99.44 amongst 7 people, there inevitably will be an issue with fractional cents. While some people might prefer 3 people to pay $14.21 and 3 people to pay $14.20, FriendFolio's approach is to just round off and make everyone pay $14.21 because in real life most people might just ask their 6 friends to pay them the same amount of money instead of having 3 random people pay extra 1 cent. In addition, if 3 people were to pay extra 1 cent, then the distribution will no longer be equal, as stated in our user guide.
Team chose [response.NotInScope
]
Reason for disagreement: The team did not explain why this should be not in scope.
There is no mention of the split functionality possibly having a wrong total amount in the UG:
nor has the team argued that the software would fail gracefully.
Expected:
split
functionality correctly handles splitting of money Actual: extra money magically pops up when splitting money Steps to reproduce:split 13 14 15 16 17 18 $/99.44