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
  • 204,283
  • 31
  • 260
  • 272

0 Answers0