0

I am getting weird result with javascript on browser.

9.95 * 100

It returns 994.9999999999 instead of 995. How can I get 995 as expected?

Is floating point math broken? only explains why, and no solution for workaround.

emil
  • 6,074
  • 4
  • 30
  • 38

0 Answers0