0

Why when I do this:

console.log('2551.01' * 100);

It logs:

255101.00000000003

But when I do this:

console.log('2551.02' * 100);

It works just fine, logging this:

255102
j08691
  • 197,815
  • 30
  • 248
  • 265

0 Answers0