4 ms·
What if I'm calculating sales tax? Can't use an integer anymore.
by TchoBeer 5y ago
What if I'm calculating sales tax? Can't use an integer anymore.
- kyllo 5y agoYes, you can. There are algorithms for rounding up, rounding down, rounding to nearest, and banker's rounding, on the results of integer division. This is a solved problem.