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