You have run out of precision numbers like Number, so you have to develop your own way of storing numbers with great accuracy. One of the most common ways to work with long arithmetic is to use strings as data holders, and the other is an ints vector, each position is a "big digit" of a 2 ^ 32-based system. Given the limitations of AS3, I would say that the vector ints will be faster, although displaying a long number will be easier with the string approach.
source share