Number (class)
Jump to navigation
Jump to search
Number is the universal number data type in Lua (Double). It can contain every type of number. If you want to use it a function be sure to provide the correct hardcoded data type!
Example:
local a = 5
local b = 0.5
Text.print(tostring(a).." + "..tostring(b).." = "..tostring(a+b), 30, 100) --calculates a+b and prints out the result.