Skip to content

SupTan85/lua-uint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LUA ULTIMATE INT

Enable large-number arithmetic (bignum) in Lua, Pure Lua number library!
POWERED BY INT DOT LUA

Note

To install this module with Luarocks:

luarocks install uint

Example:

-- require a module
local int = require("uint")

-- build a new int object
local x, y = int.new("20", "10")

print(x ^ y) -- output: 10240000000000

feature

  • Calculate
    • addition +
    • subtraction -
    • multiplication *
    • division /
    • floor division //
    • modulo %
    • power ^
  • Equation
    • equal
    • less than
    • more than
  • Function
    • exp
    • fact
    • sqrt
    • and more...

interested?

readmore

About

Enable large-number arithmetic (bignum) in Lua, Pure Lua number library!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages