Sharp PC-1403 Operation Manual page 207

Hide thumbs Also See for PC-1403:
Table of Contents

Advertisement

201
30:
PRINT
"ABCDEFGHI"
I
A
BC
JABCDEFI
20:
PRINT
"ABC"
10:
USING"&&&&&&"
Display
Statement
String constants and variables are displayed using the
'&' character.
Each
'&'
indicates one
character
in
the
field to be
displayed. The
string will be positioned at the
left end of this
field.
If
the string
is shorter
than the
field,
the remaining spaces to the
right will be filled with
spaces.
If
the
string
is longer
than
the field,
the string will be
truncated
to the
length of
the
field:
l
- 3.
65
E
021
30: PR INT -365.278
l
2.
00
E
00!
20:
PRINT 2
10:
USING"###.##""
Display
Statement
A",.,_·., character
may be
included
in the
mask to
indicate
that
the
number
is
to be
displayed in scientific
notation.
The
'#' and
'.' characters
are used in
the
mask to
specify the
format of
the
"characteristic"
portion of the
number,
i.e.,
the part which is
displayed to the left
of the
E.
Two
'#'characters should
always
be used to
the left
of
the decimal point
to provide for
the sign character
and
one integer digit. The decimal
point
may
be
included, but
is
not
required.
Up
to 9
'#'characters may
appear to the
right
of
the
decimal
point.
Following the
characteristic
portion,
the
exponentiation
character,
E,
will
be displayed followed
by one
position
for the
sign and
two
positions
tor
the exponent.
Thus,
the smallest scientific notation
field would be provided by
a
mask of
"##""
which would
print numbers of the
form
'2E
99'.
The largest
scientific
notation field would be
"##.#########""
which would print numbers
such as '-1.234567890
E
-12':
Specifying Scientific Notation
APPENDIXC
Formatting Output

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents