EasyManuals Logo

IBM 5100 Basic Reference Manual

IBM 5100
187 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #139 background imageLoading...
Page #139 background image
(
(
(
{
(
(
Packed Print Zones (Semicolon Delimiter): For numeric arrays,
the
length
of
the
packed
print zone
is
determined by the length
of
each converted value, including
the
sign,
digits, decimal point, and the exponent,
as
shown
in
Figure
11.
Length
of
Converted
Length
of
Packed
Data Item
Print Zone
Example
(16
(Character) (Character)
represents a blank)
2-4
6
k'l7.316k'1
5-7
9
1617.3571616
8-10
12
-45.639271616k'1
11-13
15
k'l1.73579E-23161616
14-16 18
-8.9227049311516161616
17-19
21
-1.234567890123E-22
Figure 11. Packed Print Zone Lengths for Arithmetic Array Elements
Display/Print Line Operation
As
the
values
of
array elements are transferred
to
the
display screen
or
printer buffer,
an internal line-position pointer
is
maintained
to
keep track
of
the
next available posi-
tion where a character (or digit) can
be
placed.
If
the
array delimiter
is
a comma,
the
line-position pointer
is
moved past any remaining
positions
in
the
full print zone after transferring
the
element value
to
the
display
screen.
If
the
final delimiter
is
a semicolon,
the
line-position pointer
is
moved past any
remaining positions
in
the
packed print zone after transferring
the
element values
to
the
display screen. See Print Line Buffer Operation under PRINT.
Notes
About
MAT
PRINT
Null
delimiters are
not
permitted
in
a
MAT
PRINT statement except as
the
final delimiter .
If
your 5100 does
not
have a printer,
the
MAT
PRINT FLP statement stops
the
program unless P = D (printer = display) option was specified
in
the
RUN
command.
136

Table of Contents

Other manuals for IBM 5100

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM 5100 and is the answer not in the manual?

IBM 5100 Specifications

General IconGeneral
Release Year1975
RAM16 KB - 64 KB
Storage204 KB tape drive
Display5-inch CRT
Operating SystemAPL/BASIC
ProcessorIBM PALM (1.9 MHz)

Related product manuals