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