1

How can I have the ^-N in the statement below mean "to the power of -N" in Flashbuilder? Thanks

var M:Number =  1 - (1 + J)^-N;
dmschenk
  • 379
  • 1
  • 5
  • 19

2 Answers2

6
var M:Number = 1 - Math.pow(1 + J, -N);
grapefrukt
  • 27,016
  • 6
  • 49
  • 73
Colin Cochrane
  • 2,565
  • 1
  • 19
  • 20
1

Colin is correct, use the Math.pow(val1:Number, val2:Number):Number method.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Math.html#pow()

Joony
  • 4,498
  • 2
  • 30
  • 39