This is a big-number library for Lua 5.1. It is based on the arbitrary precision library MAPM written by Michael C. Ring. MAPM is available at http://www.tc.umn.edu/~ringx004/mapm-main.html To try this Lua library, edit Makefile to reflect your installation of Lua and MAPM. Then run make. This will build the library and run a simple test. For detailed installation instructions, see http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html There is no manual but the library is simple and intuitive, specially given the metamethods; see the summary below. Read also test.lua, which shows the library in action. This code is hereby placed in the public domain. Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br . ------------------------------------------------------------------------------- mapm library: __add(x,y) atanh(x) log10(x) __div(x,y) cbrt(x) mul(x,y) __eq(x,y) ceil(x) neg(x) __lt(x,y) compare(x,y) number(x) __mod(x,y) cos(x) pow(x,y) __mod(x,y) cosh(x) round(x) __mul(x,y) digits([n]) sign(x) __pow(x,y) digitsin(x) sin(x) __sub(x,y) div(x,y) sincos(x) __tostring(x) exp(x) sinh(x) __unm(x) exponent(x) sqrt(x) abs(x) factorial(x) sub(x,y) acos(x) floor(x) tan(x) acosh(x) idiv(x,y) tanh(x) add(x,y) inv(x) tonumber(x) asin(x) iseven(x) tostring(x,[n,exp]) asinh(x) isint(x) version atan(x) isodd(x) atan2(y,x) log(x) -------------------------------------------------------------------------------