6 Replies Latest reply on Jan 31, 2008 6:25 PM by Peter deHaan

    Number function inacuracy?

    jfizer Level 1
      I have a string "0.064505" which I pass to the Number function so I can do some math based on it. However, Number(myVar) is returning "64505.00000000001" which is throwing my calculations off. Is this expected behavior, a known bug or what?

      EDIT: Acutely, it seems to be when I go from string to number do math and then go back to string.

      So I have a string "0.064505" which I want to multiply by the numeric value of another string. So I'm doing String(Number(varOne) * Number(varTwo)) which is resulting in the inacuracy. Any ideas?