JSFiddle - React, Tailwind, and code Playground JavaScript var num = 126389471.74000001, formatted = num.toFixed(2); document.writeln(formatted);