Note
The int object is represented as a table in Lua, designed for calculation purposes within the int module. This table includes numerical data and calculation-related information, and it supports a metatable to facilitate ease of use.
Input type:
- arg(...) -- either a string or a number.
Output type:
function int.new(...) -- (string|number) For only create. alway use default size! **BLOCK SIZE SHOULD BE SAME WHEN CALCULATE**
Example:
local int = require("int") -- import module
local x, y = int.new(1, 2)
print(x) -- output: 1
print(y) -- output: 2
Tip
if you want to custom when create one int object only,
you can use int.cnew function!