Number((6.688689).toFixed(1)); // 6.7 Number((6.688689).toFixed(2)); // 6.69
let number = 6.688689; let roundedNumber = Math.round(number * 10) / 10;