Decimal number round function1 function round (value, decimals = 0) { 2 return Number(Math.round(value + "e" + decimals) + "e-" + decimals); 3 };