JSFiddle - React, Tailwind, and code Playground JavaScript var i = 2; alert(parseFloat(i-1.1).toFixed(1));