Signed Numbers - Commodore CBM Printer 4022 User Manual

Hide thumbs Also See for CBM Printer 4022:
Table of Contents

Advertisement

SIGNED
NUMBERS
As
shown
below, a
trailing
sign,
when
specified
in
a format statement,
either prints a
blank
for
a
positive
number
or
a
minus
(-)
for
a
negative
number.
This
form
is
sometimes
desired
by
accountants.
A
leading sign
always
prints
a plus
(+)
or a
minus
(-)
for
the sign
of
the
number.
If
no
sign
is
specified
in
the format, then
no
sign
is
printed.
This
works
essentially
like
an
absolute value
on
the
number.
1-1
1-
10
0PEN1,4
29 0PEN2/4.
1
30 0PEN3,4.2
40 0PEN4>4.4
50 PRINT#4
REM ENABLE ERROR DIAGNOSTICS
60 F*="999
S999
999-"
70 PRINT#3.F*
80 PRINT#2.-1.-1.-1
90
CMDl
100 PRINT: PRINT: PRINT: PRINT
110 LIST
RE
ADV.
A-5

Advertisement

Table of Contents
loading

Table of Contents