JSFiddle - React, Tailwind, and code Playground by Paco86 May 31, 2019 JavaScript var a = 2.2222; console.log(a.toFix(2));