LuaRocks.org had a security incident in September 2026. Read the incident report.

BCD arithmetic for arbitrary large integers

$ luarocks install luabcd

Implements an ADT for arbitrary large integers with the
arithmetic operators '+','-','/','*','^'.
The numbers are internally represented as binary coded
decimals (BCD) in blocks of 8 digits per 64 bit chunk.
The implementation is based on "BCD Arithmetic, a tutorial"
at http://homepage.divms.uiowa.edu/~jones/bcd/bcd.html.

Versions

1.0-125 years ago132 downloads
1.0-95 years ago78 downloads
1.0-85 years ago49 downloads
1.0-75 years ago43 downloads
1.0-65 years ago43 downloads
1.0-55 years ago44 downloads
1.0-45 years ago43 downloads
1.0-35 years ago39 downloads
1.0-25 years ago39 downloads
1.0-15 years ago39 downloads

Dependencies

lua >= 5.1, <= 5.4

Manifests