EasyManua.ls Logo

Laser 128 - Str

Laser 128
255 pages
Print Icon
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...
BASIC COMMANDS AND STATEMENTS
3.59
STR$
Purpose:
To
return
a
string
representation
of
a
numeric
value.
Format:
STR$(x)
Comments:
This
is a good
means
of
checking
the
number
of
digits
in
a
numeric
constant,
if
it
is
used
in
conjunction
with
the
LEN
string
function.
Example:
I 0
INPUT
A
20
X$
=
STR$
(A)
30
PRINT
X$
40
PRINT
"THE
NUMBER
HAS
";
LEN
(X$); "
DIGITS"
50
GOTO
IO
RUN
? 1234
1234
THE
NUMBER
HAS 4
DIGITS
?
11-94

Table of Contents