Y
Hacker News
new
|
ask
|
show
|
jobs
by
o-o-
630 days ago
So basically Math.round((x*20))/20?
1 comments
Silphendio
630 days ago
Shouldn't it be `round(x/5)*5` ?
link
shiandow
630 days ago
Depends, are you working in cents or whole euros/dollars?
link
falcor84
629 days ago
In all use-cases I encountered, working with integer cents is much cleaner than decimals
link