This is lmpdecimal, a multiple precision library for Lua providing
correctly-rounded arbitrary precision decimal floating point arithmetic.
It is based on the mpdecimal library available at
	https://www.bytereef.org/mpdecimal/

To build the library and run a simple test, just do make.
If Lua is not installed in /usr/local, tell make:
	make LUA_TOPDIR=/var/tmp/lhf/lua-5.5.0/install

To install the library where Lua can find it, use a variant of these:
	make install
	sudo make install
	sudo make install LIBDIR=/usr/local/lib/lua/5.5

For detailed installation instructions, see
	https://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html

For the latest version of this library, see
	https://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lmpdecimal

The library is simple and intuitive; see the summary below.
Read test.lua to see the library in action.

This code is hereby placed in the public domain and also under the MIT license.
The mpdecimal code in src/ has its own license. See src/COPYRIGHT.txt.

Please send comments, suggestions, and bug reports to lhf@tecgraf.puc-rio.br .

mpdecimal library:
__add(x,y)	abs(x)		format(x,f)	ln(x)		pow(x)
__div(x,y)	add(x,y)	idiv(x,y)	log(x)		prev(x)
__eq(x,y)	ceil(x)		invsqrt(x)	log10(x)	quotrem(x,y)
__idiv(x,y)	class(x)	iseven(x)	logb(x)		scaleb(x,y)
__le(x,y)	compare(x,y)	isfinite	max(x,y)	sign(x)
__lt(x,y)	context(s)	isinf(x)	min(x,y)	sqrt(x)
__mod(x,y)	copysign(x,y)	isinteger(x)	mod(x,y)	sub(x,y)
__mul(x,y)	digits([n])	isnan(x)	mul(x,y)	tonumber(x)
__pow(x,y)	div(x,y)	isnegative(x)	neg(x)		tostring(x)
__sub(x,y)	exp(x)		isodd(x)	new(x)		trunc(x)
__tostring(x)	floor(x)	ispositive(x)	next(x)		version
__unm(x)	fma(x,y,z)	iszero(x)	nextafter(x)
