lua-users home
lua-l archive

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


> I found 'imath' and read the explanation and was curious
> Does this mean that it can support 'Bignum' calculations? When it comes to arbitrary precision, is 64 bits the maximum?

Yes, imath is a Bignum library.
The limit in its arbitrary precision is memory.
Try this code:

local B=require"imath"
local x=B.new(1)
for n=1,100 do x=x*n print(x) end