0

when we use plus operator on some numbers the answer isn't correct

when i try 22.99+16.5 the result will be 39.489999999999995 but it expected to be 39.49.

let total = 22.99+16.5; //expected to be 39.49
console.log(total); //39.489999999999995
VLAZ
  • 26,331
  • 9
  • 49
  • 67

0 Answers0