[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Long Numbers
- From: Florian Weimer <fw@...>
- Date: Sun, 23 Nov 2008 18:47:09 +0100
> 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:
<http://members.chello.nl/~w.couwenberg/lgmp.htm>
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.