HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by TchoBeer | Hacker News Reader
Parent
Full thread
TchoBeer
·
What if I'm calculating sales tax? Can't use an integer anymore.
View on HN
kyllo
·
Yes, 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.
Reply on news.ycombinator.com