Sharp PC-1403 Operation Manual page 206

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

Advertisement

200
40:
PRINT
2.547
30:
PRINT-350.5
25.
001
l-350.
501
2. 541
20:
PRINT 25
10:
USING"####.##"
Display
Statement
A
decimal
point
character, '.',
may
be included in a numeric mask
to
indicate
the
desired location
of
the
decimal point.
If
the mask provides more
significant decimal
digits than
are
required
for
the
value
to be
displayed,
the remaining positions to the
right will be filled with
zeros.
If
there
are
more significant
decimal
digits in the value
than
in the
mask,
the extra digits wilt be
truncated
(not
rounded):
Specifying a Decimal Point
Notice that the last
statement produced an
error because 5 positions (4 digits
and a
sign
space) were
required,
but
only
4
were provided
in
the
mask.
ERROR
7 IN 40
40:
PRINT
1000
30:
PRINT-350
20:
PRINT
25
Display
(Set
the
COMPUTER
to
the RUN
mode,
type
RUN,
and press
I
ENTER
I .)
I
2
51
l
-
3
501
HJ:
USING"####"
Statement
The desired
number of digits is
specified
using the
'#'
character.
Each '#'
in
the
mask
reserves
space
for
one
digit.
The
display
or
print
always contains as many
characters as are
designated in the
mask.
The
number appears to
the
far right of this
field;
the remaining positions
to the left are filled
with spaces. Positive numbers
therefore always
have
at
least one space
at
the left
of the
field.
Since the
COMPUTER
maintains a
maximum of
10 significant
digits,
no
more
than 11
'#'
characters should
be
used in
a numeric mask.
When the
total number of columns of
the
integer
part specified
exceeds
11, this integer
part
is
regarded
as
11
digits in the
COMPUTER.
NOTE:
In
all
examples in
this
appendix,
the
beginning and end of the displayed field
will be marked
with
an
'I'
character
to show the
size of
the
field.
Specifying Number of Digits
APPENDIXC
Formatting Outpu
t

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents