logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Michelle
    • Posted on Wed 17 Jul 2013 05:52 AM

    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

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: