Comment

Comment by daggersandscars

Rounding is generally done only for cash transactions (“cash rounding”). For all other payment types, the unrounded price is used.

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.

https://en.m.wikipedia.org/wiki/Cash_rounding

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton