Comment by Silphendio Comment by Silphendio 10 months ago 2 replies Copy Link View on Hacker News Shouldn't it be `round(x/5)*5` ?
Copy Link shiandow 10 months ago Collapse Comment - Depends, are you working in cents or whole euros/dollars? Reply View | 1 reply Copy Link falcor84 10 months ago Parent Collapse Comment - In all use-cases I encountered, working with integer cents is much cleaner than decimals Reply View | 0 replies
Copy Link falcor84 10 months ago Parent Collapse Comment - In all use-cases I encountered, working with integer cents is much cleaner than decimals Reply View | 0 replies
Depends, are you working in cents or whole euros/dollars?