Specifications

5-6-13 Output Format
SET command
A SET command
is
used
to
designate the display
output
format.
It
designates the
number
of
effective positions and the number
of
decimal positions.
Format: SET
En·········
designation
of
number
of
effective positions
(n
==
0 through 8)
SET
F n ......... designation
of
number
of
decimal positions
(n
==
0 through 9)
SE
TN······
... designation
release
*
If
SET E 0
is
used
when designating the number
of
effective positions, 8 positions
will
be
designated. This command
can
be
performed manually or by
writing
it
in a
program. Refer
to
page
25
for
display contents.
5-6-14 Character Functions
LEN
The
LE
N
function
is
used
to
count the number
of
characters in a character variable.
It
permits the
size
of
the character variable
to
be
known.
Format:
LEN
(character variable)
Example:
If
A$=
"ABCDE"
LEN(A$)
=5
.
MID
The
MID
function
is
only
used
with
the exclusive character variable ($).
It
extracts a
certain number
of
characters
from
the character string in the $ variable.
Format:
MID
(m
[,
n])
m and n are numerical expressions and must
be
between 1 and 30.
(Items
in
[ ] may
be
omitted.)
This means
to
extract n characters
from
the
mth
character
of
the character string stored
in the exclusive character variable
($).
Numerical expression m should
not
exceed the number
of
characters stored. Also, m +n
should
not
exceed the number
of
stored characters +
1.
Furthermore, when numerical expression n
is
omitted,
all
of
the characters
from
m on
will
be
extracted.
Example:
If
$ =
"PC
- 4"
MID
(2,3)
=
"C-4"
and MID (4) =
"4"
-56-