Main Features Download Documentation Resources

Intrinsic Functions

Mathematics

Function Description
Abs(n) Absolute Value
Arcsin(n) Trigonometric Arcsine
Arccos(n) Trigonometric Arccos
Arctan(n) Trigonometric Arctangent
Cos(n) Trigonometric Cosine
Int(n) Integral (whole value) of a real number
Ln(n) Natural Log
Log(n) Natural Log (same as Ln)
Log10(n) Log Base 10
Sgn(n) Mathematical sign (-1 if n is negative, 0 if zero, 1 if positive)
Sin(n) Trigonometric Sine
Sqrt(n) Square Root
Tan(n) Trigonometric Tangent

Strings

Function Description
Len(s) Length of a string
Char(s, i) Returns a character from the string s at index i. Characters are indexed starting at 0.

Data Type Conversion

Function Description
ToChar(n) Convert a character code n into a character.
ToCode(c) Convert a character c into a character code (integer).
ToFixed(r, i) Convert real number r to a string with i digits after the decimal point. This function is useful for currency.
ToInteger(n) Convert a string to an integer
ToReal(n) Convert a string to an real
ToString(n) Convert a number to a string

Other

Function Description
EOF() Returns true if the end of the file was reached. This is used with files opened for reading.
Random(n) A random number between 0 and (n - 1)
Size(a) The size (number of elements) in an array