by dyauspitr · 1y ago · 0 comments
I wrote code for this a long time ago when cash was still a major form of payment in a country that got rid of sub 0.05 coins. There were various rules to try to ensure neither the seller or buyer always benefited.
No code will save you here.
If you do pay cash, it's not the item's price that's rounded, it's the total. That's important because the amount being rounded is essentially random, so the shop can't chose a price that would be rounded in one direction. In a $10 purchase using 0.05 rounding the maximum difference amounts to 0.4%, but is usually 0.2% or less. It's so small it could be used as an advertising gimmick, and consequently some retailers chose to always round down. The remainder went with rounding to the nearest with the lowest value winning in a tie.
I do not remember a single one always rounding up. That would be a customer relations disaster.
1.00 -> already round
1.01, 1.02 -> round down to 1.00
1.03, 1.04 -> round up to 1.05
1.05 -> already round
1.06, 1.07 -> round down to 1.05
1.08, 1.09 -> round up to 1.10
1.10 -> already roundIf price is $1.03 then for cash customers, the price has to become $1.05. If paying debit or credit card then the price can stay $1.03 because there is no cost for computing pennies.
The optics of the change is that it does cost more for the consumer if paying cash and if you have a society that wants to push more people to digital transactions then this is how you start to do it along with the optics and ramifications that go with it.
The entire world is already moving to digital currencies and even if you do everything with cash, rounding up and down to the nearest nickel - per total transaction is not going to make a dent in anyone’s budget - even the poorest people.
If you make 4 cash transactions a day and your total transactions are always rounded up, you’re going to be out of $3.60 a month and that’s the worse case.