5 Replies Latest reply on Aug 24, 2007 7:48 AM by clbeech

    Flash Math

    miquael Level 1
      Any good ActionScript mathematicians out there?

      I keep getting "NaN" on this value, but should not be.

      lambda = (Math.sqrt(((x*2)+(y*2)) - R0) * (1/R1));

      x = x coordinate
      y = y coordinate
      R0 = radius of a circle
      R1 = radius of another circle

      With this variable, I get a mix of valid numeric values and sometimes "NaN". It appears that the formula is valid, but that some of the values are going beyond what Flash can recognize.

      What limitations does ActionScript have with number generation?