Each standard function in this group performs an operation on its arguments and returns the result for expression evaluation.
abs absolute value arccos arc cosine arcsin arc sine arctan arc tangent arctanxy arc tangent of Cartesian coordinates cos cosine cosh hyperbolic cosine exp power of getexp exponent base 10 of argument ln natural (base ) logarithm log10 base 10 logarithm log2 base 2 logarithm max maximum of two arguments min minimum of two arguments pred predecessor rand real random number in range 0.0 to 1.0 randint integer random number in range of arguments randomize changes seed of random number generator randseed set random seed setexp set exponent base 10 to a new value sign sign (+/-1) of argument sin sine sinh hyperbolic sine sqrt square root succ successor tan tangent tanh hyperbolic tangent
Functions in this group perform operations on strings.
index location of substring length length of string repeat repeated substrings
These standard functions perform conversions between the standard data types supported by the T programming language.
ceil real to integer above chr integer to character erealstr real to string, exponent format floor real to integer below frealstr real to string, floating point format intreal integer to real number intstr integer to string ord character to integer realstr real to string, default formats round real to nearest integer strint string to integer strreal string to real number
These functions provide access to hard and floppy disk files.
close closes an open disk file eof indicates when the end of a file is reached open opens a disk file
These procedures and functions are used for input and output to the screen and keyboard of your system.
cursor set cursor shape getkey get key input from console locate set cursor position putch send a character to the screen putline draw a line on screen between two points putpixel place a point on the screen putstr send a string to the screen scroll scrolls a region of the text screen setvideo set video mode videomode return current video mode videotype return video equipment type
This function is provided to help you debug your programs. It works in the debug mode of the T interpreter and allows you to view the values of data in your program.
watch send argument value to debug screen
All of the standard subprograms listed in this chapter can be used in your programs. Complete definitions explaining their usage, required argument types, and return types of functions are contained in Section 9.