lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> I've been unable to find a Lua module for implementing the long number
> used in Python to represent ridiculously long numbers. Is there
> something like this for Lua?

Look for bindings to GMP.  Here's one:


I haven't used it, though.

> And if not, does any one know how Python does this or how this could
> be implemented in Lua?

I think Python uses straightforward C implementations of the classical
algorithms, as found in most algorithm textbooks.