Number

From Goodblox Wiki
Revision as of 10:16, 20 September 2021 by Xyrafrost (talk | contribs) (created the page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search


A Number in Lua is any number. That's it, really. Any number. It can have decimal places, be negative, whatever.

Most of the time Lua doesn't mind if a number has decimal places or is negative. However certain Properties in GoodBlox require a whole number, or a positive number. In such cases an Integer will be asked for, instead of a number.

Additionally, arithmetic operators can be applied to Numbers. Multiplication (*), Division (/), Subtraction (-), Addition (+), and Modulo (%). Comparative operators (<,>,>=,<=) can also be applied to numbers.