EasyManua.ls Logo

Commodore 128D - Page 297

Commodore 128D
427 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
EXAMPLE:
5
X
=
32:
Y
=
100.23:
A$
=
"CAT"
10
PRINT
USING
"$##.##
";13.25,X,Y
20
PRINT
USING
"###>#";"CBM",A$
When
this
is
RUN,
line
10
prints:
$13.25 $32.00
$***
Line
20
prints
this:
CBM
CAT
CHARACTER
Pound
sign
(#)
Plus
sign
(
+
)
Minus
sign
(-)
Decimal
Point
(.)
Comma
(,)
Dollar
Sign
($)
Four
Up
Arrows
(Tttt)
Equal
Sign
(=)
Greater
Than
Sign
Five
asterisks
(*****)
are
printed
instead
of
a
Y
value
because
Y
has
five
digits,
and
this
condition
does
not
con
form
to
format
list
(as
explained
below)
Leaves
three
spaces
before
printing
"CBM"
as
defined
in
format
list.
NUMERIC
X
X
X
X
X
X
X
STRING
X
X
X
The
pound
sign
(#)
reserves
room
fora
single
character
in
the
output
field.
If
the
data
item
contains
more
characters
than
there
are
#
signs
in
the
format
field,
the
entire
field
is
filled
with
asterisks
(*);
no
characters
are
printed.
EXAMPLE:
10
PRINT
USING
"####";X
For
these
values
of
X,
this
format
displays:
A
=
12.34
12
A
=
567.89
568
A
=
123456
****
289
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals