What is the size limit for numbers in LC? -- and multiplying really large numbers

Geoff Canyon gcanyon at gmail.com
Tue Sep 17 17:01:36 EDT 2013


On Fri, Sep 6, 2013 at 2:05 PM, Geoff Canyon <gcanyon at gmail.com> wrote:

> Okay, now it's chunking by 7, and checking/avoiding overflows. This little
> baby will multiply two 7,000 digit random numbers in right around a
> second on my machine. Woot! If anyone sees further optimizations let me
> know.
>


Well, I *was* impressed with myself, until I tried the same sort of thing
using Python's built-in bignum library. It will multiple two 500,000-digit
numbers in well under a second. There's something to be said for native
code, I guess...



More information about the use-livecode mailing list