Decimal number errors in node when adding

前端 未结 0 554
失恋的感觉
失恋的感觉 2020-11-28 01:41

When adding float numbers in node, I\'m getting some very weird results.

for (let i = 0.01; i < 1; i += 0.01)
    console.log(i);

The abov

相关标签:
回答
  • 消灭零回复
提交回复
热议问题