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