HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by Silphendio | Hacker News Reader
Parent
Full thread
Silphendio
·
Shouldn't it be `round(x/5)*5` ?
View on HN
shiandow
·
Depends, are you working in cents or whole euros/dollars?
falcor84
·
In all use-cases I encountered, working with integer cents is much cleaner than decimals
Reply on news.ycombinator.com