number (class)

From Moondust Wiki
Revision as of 19:10, 17 October 2014 by Kevsoft (talk | contribs) (Created page with "{{lowercase}} '''number''' is the universal number data type in lua. It can contain every type of number. If you want to use it a function be sure to provide the correct hardc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


number is the universal number data type in lua. 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
printText(tostring(a).." + "..tostring(b).." = "..tostring(a+b), 30, 100) --calculates a+b and prints out the result.