EasyManua.ls Logo

Sharp MZ-800 - Page 53

Sharp MZ-800
221 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...
SPC(n)
n:
numeric
value
Returns
a
string
of
successive
spaces,
the
length
of
which
is
expressed
by
n.
Example:
PRINT
‘‘A’’;SPC(3);‘ABC”’
A
ABC
0
1
23
4
5
6
*
column
positions
which
are
not
displayed.
oy
3
spaces
(3)
Numeric
value/character
string
conversion
functions
The
following
functions
convert
a
numeric
expression
into
a
character
string
or
vice
versa.
STRS(n)
n:
numeric
value
Converts
numeric
value
n
into
a
character
string.
(A
hexadecimal
value
is
preceded
by
$.)
Examples:
A$
=STRS$(—
12)
The
character
string
‘‘—12’’
is
returned
as
A$.
B$
=STR$(70*
33)
The
character
string
‘‘2310"’
is
returned
as
BS.
C$
=STR$(1200000
*
5000)
The
character
string
“‘6E
+09”’
is
returned
as
C$.
Note:
A
positive
integer
displayed
or
printed
is
preceded
by
a
single
space
which
indicates
that
the
plus
sign
(+)
is
valid
but
has
been
omitted.
However,
this
space
is
deleted
when
the
integer
is
converted
into
a
string
by
the
STR$
function.
VAL(x$)
x$;
character
string
Converts
a
character
string
into
a
numeric
value.
Example:
A=
VAL
(‘123°’)
The
string
‘‘123’’
is
converted
into
the
numeric
value
123.
A=VAL
(“‘$FF”’)
A
string
‘‘$FF”’
is
converted
into
the
numeric
value
255.
ASC(x$)
x$:
character
string
Returns
the
numeric
value
which
is
the
ASCII
code
for the
first
character
of
string
X$.
Examples:
X
=
ASC(‘‘A’’)
Returns
the
numeric
value
65,
which
is
the
ASCII
code
for
character
‘‘A’’.
Y
=
ASC(‘‘SHARP”’)
Returns
the
numeric
value
83,
which
is
the
ASCII
code
for
the
first
character
of
the
string
““SHARP”’.

Other manuals for Sharp MZ-800

Related product manuals