Numbers
Previous  Next

Integers are represented as a sequence of digits. Floats use ‘.’ as a decimal separator. Either type of number may be preceded by ‘-’ or ‘+’ to indicate a negative or positive value, respectively.

Examples of valid integers:

21
0
-28

Examples of valid floating-point numbers:

317.24
-450187.6809
18.00

If an integer is used in a floating-point context, it will be interpreted as the equivalent floating- point number; furthermore, if an integer exceeds the platform limits for the integer value, a floating point value will be used instead.