// Float arithmetic in a loop: a running sum, three million times. let x = 0, acc = 0; for (let i = 0; i <= 3_000_000; i++) { acc += x * 2.0; x += 0.5; } console.log(acc.toFixed(1));