JSFiddle - React, Tailwind, and code Playground
JavaScript
var num = 0.01;
var num = (num.toFixed(2) + 5) * 10;
var num = (num.toFixed(2) + 7) * 10;
alert(num);
var num = 0.01;
var num = (num.toFixed(2) + 5) * 10;
var num = (num.toFixed(2) + 7) * 10;
alert(num);