Divide

Abstract AS2

@t0 = @pop();
@push(@pop() / @t0);

Adobe documentation

ActionDivide

ActionDivide divides two numbers and pushes the result back to the stack.

FieldTypeComment
ActionDivideACTIONRECORDHEADERActionCode = 0x0D

ActionDivide does the following:

  1. Pops value A off the stack.
  2. Pops value B off the stack.
  3. Converts A and B to floating-point; non-numeric values evaluate to 0.
  4. Divides B by A.
  5. Pushes the result, B/A, to the stack.
  6. If A is zero, the result NaN, Infinity, or -Infinity is pushed to the stack in SWF 5 and later. In SWF 4, the result is the string #ERROR#.