OCT() Returns the decimal equivalent of the string expression, which should be a valid octal number. Examples: OCT("377") OCT(OCTADR$) * OCT$() Returns a string which represents the octal value of the numeric expression. Examples: OCT$(10) OCT$(X+Y) OCT$(DECIMAL) PEEK() Returns the value of the byte in memory address . Examples: PEEK(0) PEEK(1024+OFFSET) PEEK(DECIMALADDRESS) POS() Returns the current position of the PRINT device. If used within a PRINT statement, zero will always be returned, since the function is evaluated before the line is printed. This function is normally used after a PRINT statement ending with a semicolon. Examples: POS(0) POS("") POS(anything) RIGHT$(,) Returns the rightmost characters of . Examples: RIGHT$(SENT$,1) RIGHT$(S$,NUM) RND() If is less than zero, starts a new sequence of random numbers. If it's equal to zero, returns the same number as the last RND returned. If it's greater than zero, returns the next random number in the sequence. Examples: RND(-1) RND(0) RND(1) RND(X) SEARCH() Searches the current disk file from the current position, for the first (or next) occurance of . Returns the number of carriage-returns + 1 that it passed while searching. Examples: PRINT SEARCH(A$+B$) MOVEBOF:X$=SEARCH(INDEX$) SGN() If is greater than zero, returns 1. If it's equal to zero, returns 0; if less than zero, returns -1. Examples: SGN(-2.57) SGN(0) SGN(353.2) SGN(X^3+Z) SIN() Returns the sine of angle , which is in radians. Examples: SIN(DEG*PI/180) SIN(.256) SIN(X/Y) SPACE$() Returns a string of spaces. Examples: SPACES$(BUFFERSIZE) SPACES$(4+LEN(LINE$)) SPC() Prints spaces on the PRINT device. Examples: SPC(20) SPC(N/3) SPC(INT(X*2)) 4-3