lua-users home
lua-l archive

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

Wow Thanks
I glared at the module for BigNum on github for a few hours
I used to give up, go to bed and forget :)

2023年9月24日(日) 7:55 Luiz Henrique de Figueiredo <>:
> 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"
for n=1,100 do x=x*n print(x) end