What is the best way to round 0.023 up to 0.03 using JavaScript?
I attempted this method, but it resulted in 0.024
var abc = 0.023, factor = 0.003;
abc = Math.round(abc / factor) * factor;
console.log(abc);
Is there a different approach I should take to achieve 0.03?