home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / SIMTEL / CPMUG / CPMUG031.ARK / TBASIC.12 < prev    next >
Text File  |  1984-04-29  |  2KB  |  64 lines

  1. * OCT$(<numeric expression>)
  2. Returns a string which represents the octal value of the numeric
  3. expression.  Examples:  OCT$(10)    OCT$(X+Y)    OCT$(DECIMAL)
  4.  
  5. PEEK(<numeric expression>)
  6. Returns the value of the byte in memory address <numeric expression>.
  7. Examples:  PEEK(0)    PEEK(1024+OFFSET)    PEEK(DECIMALADDRESS)
  8.  
  9. POS(<expression>)
  10. Returns the position of the printer.  Used only in PRINT statements.
  11. Examples:  POS(0)    POS("")    POS(anything)
  12.  
  13. RIGHT$(<string expression>,<numeric expression>)
  14. Returns the rightmost <numeric expression> characters of
  15. <string expression>.    Examples:  RIGHT$(SENT$,1)    RIGHT$(S$,NUM)
  16.  
  17. RND(<numeric expression>)
  18. If <numeric expression> is less than zero, starts a new sequence of
  19. random numbers.  If it's equal to zero, returns the same number as
  20. the last RND returned.  If it's greater than zero, returns the next
  21. random number in the sequence. 
  22. Examples:    RND(-1)    RND(0)    RND(1)    RND(X)
  23.  
  24. SGN(<numeric expression>)
  25. If <numeric expression> is greater than zero, returns 1.
  26. If it's equal to zero, returns 0; if less than zero, returns -1.
  27. Examples:  SGN(-2.57)    SGN(0)    SGN(353.2)    SGN(X^3+Z)
  28.  
  29. SIN(<numeric expression>)
  30. Returns the sine of angle <numeric expression>, which is in radians.
  31. Examples:  SIN(DEG*PI/180)    SIN(.256)    SIN(X/Y)
  32.  
  33. SPACE$(<numeric expression>)
  34. Returns a string of <numeric expression> spaces.
  35. Examples:  SPACES$(BUFFERSIZE)    SPACES$(4+LEN(LINE$))
  36.  
  37. SPC(<numeric expression>)
  38. Prints <numeric expression> spaces on the console.
  39. Examples:  SPC(20)    SPC(N/3)    SPC(INT(X*2))
  40.  
  41. SQR(<numeric expression>)
  42. Returns the square root of <numeric expression>.  An error message
  43. will result if <numeric expression> evaluates to a negative number.
  44. Examples:  SQR(B*B-4*A*C)    SQR(2)    SQR(X)
  45.  
  46. STR$(<numeric expression>)
  47. Returns the string representation of <numeric expression>,
  48. without leading or trailing spaces.
  49. Examples:  STR$(3052.67)    STR$(NUMBER)    STR$(X*Y/Z)
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.                12
  60.  
  61.  
  62.  
  63.  
  64.