Can you round a number in javascript to 1 character after the decimal point (properly rounded)?
I tried the *10, round, /10 but it leaves two decimals at the end of
ES 6 Version of Accepted Answer:
function round(value, precision) { const multiplier = 10 ** (precision || 0); return Math.round(value * multiplier) / multiplier; }