EasyManua.ls Logo

Radio Shack TRS-80 Model 4 - Page 290

Radio Shack TRS-80 Model 4
418 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
STR$
I STR$(number)
Function I
STRING$
Converts number into a string.
If
number is positive, STR$ places a blank before the string.
While arithmetic operations may
be
performed
on
number, only string
functions and operations may
be
performed
on
the string.
Example
S$
=
STR$
(:<)
converts the number X into a string and stores it
in
S$.
Sample Program
10
A =
1.6
:
B#
= A :
C#
=
VAL(STR$(A»
20
PRINT
"REGULAR
CONI.JERSION"
TAB(40)
"SPECIAL
CONI.JERS I
ON"
30
PRINT
B#
TAB(40)
C#
Function
STRING$(number,characfer)
Returns a string of number characters.
Number must
be
in
the range 0 to 255.
Character
is
a string or
an
ASCII code.
If
you use a string constant, it
must be enclosed
in
quotes. All the characters
in
the string will have
either the ASCII code specified, or the first letter of the string
specified.
STRING$ is useful for creating graphs or tables.
2-164

Other manuals for Radio Shack TRS-80 Model 4

Related product manuals