HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by o-o- | Hacker News Reader
Parent
Full thread
o-o-
·
So basically Math.round((x*20))/20?
View on HN
Silphendio
·
Shouldn't it be `round(x/5)*5` ?
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