7 ms·So basically Math.round((x*20))/20?by o-o- 2y agoSo basically Math.round((x*20))/20?Silphendio 2y agoShouldn't it be `round(x/5)*5` ?shiandow 2y agoDepends, are you working in cents or whole euros/dollars?falcor84 2y agoIn all use-cases I encountered, working with integer cents is much cleaner than decimals