I think it's worth pointing out took those new(ish) to JavaScript that these are issues which occur with floating point arithmetic.
If the math on your web page is dealing with currency, then one solution is to convert to integers first (ie. cents/pence), do the math then convert back to dollars/euros/pounds
I think it's worth pointing out took those new(ish) to JavaScript that these are issues which occur with floating point arithmetic.
If the math on your web page is dealing with currency, then one solution is to convert to integers first (ie. cents/pence), do the math then convert back to dollars/euros/pounds