Tandy 1000 Basic Reference Manual page 319

Hide thumbs Also See for 1000:
Table of Contents

Advertisement

Chapter 10 I
BASIC
Keywords
STR$
Function
STR$( number)
Converts
number to
a string.
If
number
is positive, STR$ places a blank before the string. If
number
is negative, STR$ places a minus sign
(-1
before the
string.
While arithmetic operations may be performed on
number,
only
string functions and operations may be performed on the string.
The complementary function
to
STR$ is
VAL.
Example
converts the number
X
into a string and stores it in
S$.
S $
=
S T R $ < X )
Sample Program
1 0 A
=
1
.6
:
B#
=
A
: C #
=
V A L ( S T R $ ( A ) )
2 0 P R I N T "REGULAR
CONVERSION"
T A B ( 4 0 )
"SPEC
I AL
C O N V E R S I O N "
30 P R I N T
B#
T A B ( 4 0 )
C #
317

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents