Commodore 16 User Manual
Download Operation & user’s manual of Commodore 16 Desktop for Free or View it Online on All-Guides.com.
##*.
#%#*
10
1
1 Decimal point
added.
SI Leadings sign
A
dollar
sign (S) symbol shows that
a
dollar sign will
be
printed
m
Ihe
number If
you
wani the dollar sign
to
float
(always be placed before trie
number), you mus!
specify
at least one # before
Ihe
dollar sign
If you
specify
a dollar
sign
without a leading 0, the dollar sign is printed in the
position shown
in the
format fietd.
If
you
specify commas and/or
a plus or minus sign in
a
format field
with
a
ooilar
sign, your program prints
a
comma
or
sign
before the dollar
The
lour up arrows or carels (tnt)
symbol Is used to
specify
mat the
number is
to be printed In E + format. You must
use
#
>n
addition
to
the Iff T to specify the field width.
The TTT1 must appear after
the
# in
the
format
field
You must specify four carels (tTTT)
when you want
to
print
a
number in
E -fo'mat (scientific notation) If
you
specify more than one
but fewer
lhan four carets,
you get a syntax error. If
you
specify
more
than four
carels only the first four
are used
The
llfth caret (and subsequent
carets) are interpreted literally
as no text symbols
An
equal sign (») is used
1o
centre
a
string in the field.
You specify
the
field width
by the
number
of characters (# and ») in the lormal field If
the string contains fewer
characters than the
field
width, the string is
centreed
in
the field. If the string contains
more
characters
than can be
fit Into
the
field
The
right-most
characters are truncated and the string
fills the entire field.
A
greater
than sign
(
>
) is
used
to right justify
a
string
in a field.
You
specify the field width
by the number of characters
(#
and =)
In the
format
field. If the string contains fewer characters
than the field width,
the string is right justified in the field.
If the string
contains
more
characters than can be lit into the field,
the
right-most characters
are
truncated
and the string
tills
the entire field
PUDEF
PUDEF
"1
through 4 characters"
I .VI
!
PUDEF
lets
you
redefine
up to
4 symbols in the PRINT USING
statement. You can change blanks, commas, decimals points, and
dollar signs into some other character by
placing
Ihe new
character In
the
correct position in
the PUDEF
control string.
Position 1 is the filler character. The default is a blank Place a new
character
here when you want another
character
lo
appear in place
of
blanks.
Position 2 is
Ihe
comma character. Default is
a
comma
Position
3 is the decimal
point
Position A is the
dollar
sign.
EXAMPLES
10 PUDEF
"
p-
20
PUDEF
"'&"
30 PUDEF"
,"
40 PUDEF
"T.E*
ispace PRlNTs
"
in
the place
of blanks.
PRINTS
&
in place of commas.
space PRINTS decimal points in
place
ol
commas,
and commas in place of
decimal points
PRlNTs English pound
sign in
place of $,
decimal points
in
place
of commas,
and
commas in place of decimal points.
READ
READ
variable list
This statement is
used to get
information from DATA statements
into
variables, where the data can be used. The READ
statement vaiiabte
list
may contain both strings and numbers.
Care
must be
taken
to avoid
reading
strings where the READ statement
expects
a
number, which
produces an ERROR message
EXAMPLE:
READ AS, GS, Y
135