JSFiddle - React, Tailwind, and code Playground
by vasi_32
JavaScript
// With rounding
var x = 119.0484;
document.write('<pre>'+x.toFixed(2)+'</pre>')
// Without rounding
var val = (Math.floor(100 * x) / 100).toFixed(2);
document.write('<pre>'+val+'</pre>')