ToInteger

Abstract AS2

@push(~~@pop());

Adobe documentation

ActionToInteger

ActionToInteger converts a value to an integer.

FieldTypeComment
ActionToIntegerACTIONRECORDHEADERActionCode = 0x18

ActionToInteger does the following:

  1. Pops a value off the stack.
  2. Converts the value to a number.
  3. Discards any digits after the decimal point, resulting in an integer.
  4. Pushes the resulting integer to the stack.