Sharp PC-1403 Operation Manual page 205

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

Advertisement

199
Numeric Masks
A
numeric USING mask
may only
be used to display numeric values, i.e., numeric
constants or numeric
variables. If
a string
constant or
variable is displayed while
a
numeric
USING
mask is in
effect,
the mask
will be
ignored. A value that is to
be
displayed
must
always fit
within the space provided
by
the
mask.
The mask must
reserve space for the sign
character,
even when the number
will
always be
positive.
Thus a mask
that
shows
four display
positions
may only
be used to display numbers
with
three
digits.
Wherever a
USING
verb is
used,
it
will control
the format
of all
output
until a new
USING verb
is
encountered.
50:
PRINT USING M$; N
A USING verb
may also be used
within
a
PRINT statement:
40:
USING
When the USING verb is used with
no
mask,
all special
formatting
is
canceled.
10:
USING"####"
20:
M$="&&&&&&"
30: USING M$
It is
sometimes
important or
useful
to
control
the
format as
well as the content of the
output The
COMPUTER
controls display formats with
the USING
verb.
This verb
allows you to
specify:
the number of
digits
the location of the
decimal
point
• the
scientific notation
format
the
number
of string characters
These different formats are specified
with
an
"output mask".
This mask may be a
string
constant or a string
variable:
I
I
APPENDIX
c
'
' , ,
,
I
,
1
1
1
,
FO.RMATTING OUTPUT
,, .
'
I
'
'
APPENDIXC
Formatting
Output

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents