Data Types


With "Keeping it Simple" in mind, this scripting language only has 2 types

A numeric type Number and a string type String.


Variables of type Number can hold any value that will fit in the IEEE double precision type (8 byte double precision numbers).

They can be used to represent very large integer or floating point values.

Many of the Math Functions internally graduate the values passed to them to long double (10 byte double precision) or 64 bit integers when those graduations are required. This should minimize rounding errors in the trig functions, for example.

But, keeping in mind that this is a script language, no extraordinary measures were taken to avoid rounding errors.


They can also be used to represent very small floating point values.

Numbers have about 15 significant digits of precision, and should hold any foreseeable value for the purposes of this scripting language.


Variables of type String, see String functions, are variable length strings that have a theoretical maximum length of 2^31-1 characters.


Note: You will run out of system resources and cause a crash if you attempt to approach this theoretical limit.


The point is that there is no "hard" limit of 255 characters (as found in many languages), or even of 32565 characters. If system resources are available, you should be able to construct and operate on very large string variables.


Variable usage is limited only by the amount of system resources available to the interpreter.


See also:

Variable Declarations