Radio Shack CTR-118 User Manual Page 76

  • Download
  • Add to my manuals
  • Print
  • Page
    / 196
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 75
5-10
Example Program
10 A=58.5: B=-58.5
20 PRINT STR$(A)
30 PRINT STR$(B)
40 PRINT STR$(A+B)
50 PRINT STR$(A)+STR$(B)
RUN
58.5
-58.5
0
58.5-58.5
READY
>_
Note that the leading blank is filled by the minus sign in STR$(B).
STRING$
(n, "character" or number)
Returns a string composed of n
character
-symbols. For example,
STRING $(30,"*") returns "******************************"
STRING$ is useful in creating graphs, tables, etc.
The argument n is any numerical expression with a value of from zero to 255.
character
can also be a number from 0-255; in this case, it will be treated as
an ASCII, control, or graphics code.
Example:
STRING$(64,191) returns a string composed of 64 graphics blocks.
Page view 75
1 2 ... 71 72 73 74 75 76 77 78 79 80 81 ... 195 196

Comments to this Manuals

No comments