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.
Comments to this Manuals