EasyManua.ls Logo

Commodore 128D - Page 299

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...
n
n
EXAMPLES:
FIELD
EXPRESSION
####
####
###
-
1
1
-
100.5
-1000
10
1
RESULT
-0.1
1.0
-101
* * * *
10.
$1
COMMENT
Leading
zero
added.
Trailing
zero
added.
Rounded
to
no
decimal
places.
Overflow
because
four
digits
and
a
minus
sign
cannot
fit
in
field.
Decimal
point
added.
Floating
dollar
sign.
A
dollar
sign
($)
symbol
shows
that
a
dollar
sign
will
be
printed
in
the
number.
If
the
dollar
sign
is
to
float
(always
be
placed
before the
number),
at
least
one
pound
sign
must be
specified
before
the
dollar
sign.
If
a
dollar
sign
is
specified
without
a
leading
pound
sign,
the
dollar
sign
is
printed
in
the
position
shown
in
the
format
field.
If
com
mas
and/or
a
plus
or
minus
sign
are
specified
in
a
format
field
with
a
dollar
sign,
the
program
prints
a
comma
or
sign
before
the
dollar
sign.
The
up
arrows
or
caret
symbols
(aa)
are
used
to
specify
that
the
number
is
to
be
printed
in
E
+
format
(scientific
notation).
A
pound
sign
must
be
used
in
addition
to
the
four
carets
to
specify
the
field
width.
The
carets
can
appear
either
before
or
after
the
pound
sign
in
the
format
field.
Four
carets
must
be
specified
when
a
num
ber
is
to
be
printed
in
E
format.
If
more
than
one
but
fewer
than
four
carets
are
specified,
a
syntax
error
results.
If
more
than
four
carets
are
specified,
only
the
first
four
are
used.
The
fifth
caret
is
inter
preted
as
a
no-text
symbol.
An
equal
sign
(=)
is
used
to
center
a
string
in
a
field.
The
field
width
is
specified
by
the
number
of
charac
ters
(pound
sign
and
equal
sign)
in
the
format
field.
If
the
string
con
tains
fewer
characters
than
the
field
width,
the
string
is
centered
in
the
field.
If
the
string
contains
more
characters
that
can
be
fit
into
the
field,
then
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.
291
BASIC
7.0
ENCYCLOPEDIA—Basic
Commands
and
Statements

Table of Contents

Other manuals for Commodore 128D

Related product manuals