Is there a way to round number like: 0.203 to 0.21
Now I do this:
priceCurrent.toFixed(2);
Is there a way to round number like: 0.203 to 0.21
Now I do this:
priceCurrent.toFixed(2);
You multiply this number with 100, take the ceil
and divide by 100
console.log(Math.ceil(0.203*100)/100)