Comment by o-o- Comment by o-o- a year ago 3 replies Copy Link View on Hacker News So basically Math.round((x*20))/20?
Copy Link Silphendio a year ago Collapse Comment - Shouldn't it be `round(x/5)*5` ? Reply View | 2 replies Copy Link shiandow a year ago Parent Collapse Comment - Depends, are you working in cents or whole euros/dollars? Reply View | 1 reply Copy Link falcor84 a year 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 a year ago Parent Collapse Comment - Depends, are you working in cents or whole euros/dollars? Reply View | 1 reply Copy Link falcor84 a year 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 a year 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` ?