Kinds of Numbers
Newart is an art of numbers. They're used throughout in scripting: as color codes, as integers,
as fractional numbers defining functions and so on. There're several formats of a number.
Integer or fractional constant
It can be either positive or negative. Examples: 256; 0.001;
-1e10 (exponential form of a huge or a very small number).
Angle value in degrees or radians
Example: 3.1416 radians if roughly the same as 180` (note
that back quote is used in syntax of a degree constant).
Hexadecimal integer prefixed by "0x"
Example: 0xFF equals 255.
Variable name used in place of a number
Example: there's predefined variable "once" that equals 1.
Infinity constant
"Eternity" and "eternally" are both synonyms of the
infinity. Normally it's used to create eternal loops.
Random number
A random has syntax random[A:B]. It's expanded to a pseudo-random number
between "A" and "B". No spaces allowed.
Predefined constants