function round(number, precision) { const factor = 10 ** precision; // Math.pow(10, precision) return Math.round((number + Number.EPSILON ) * factor) / factor; }
223400cookie-checkJavascript round
function round(number, precision) { const factor = 10 ** precision; // Math.pow(10, precision) return Math.round((number + Number.EPSILON ) * factor) / factor; }