JSFiddle - React, Tailwind, and code Playground JavaScript var rValue = parseFloat(594 * .2); alert(rValue.toFixed(2).replace(".00",""))