RBASIC™ Functions
RBASIC has numerical as well as string functions. Functions which return string values: STR$(number) Returns number converted to text. Example: a$=STR$(5*8) will place "40" into variable a$. CHR$(ascii value) Returns character corresponding to the ascii value code. NL$ Returns new line character (thats ASCII character 13 in decimal). SPC$(n) Returns a string of n spaces. TAB$ Returns the TAB character (that's ASCII character 9). TIME$ Returns the current time in the format "HH:MM:SS.mss". DATE$ Returns the current date in the format "YYYY/MM/DD". SUB$(a$,s,n) Returns n characters long substring of the string a$, starting at s-th character. FORMAT$(v,n,d) Converts numeric value v to a string representation at least n characters long and having d decimal places. Functions which return a numeric value: Trigonometrical Functions
SIN(rad) Arithmetic Functions
SQR(a) - a*a Other Functions
VAL(string$) - converts string to a number For file related functions, please refer to the separate chapter Files, for graphics related functions please refer to Graphics.
|