Skip to content

Latest commit

 

History

History
40 lines (25 loc) · 1000 Bytes

int.new.md

File metadata and controls

40 lines (25 loc) · 1000 Bytes

int.new

https://github.com/SupTan85/int.lua

function

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!


function & methods

end