Display/Print Line Operation - IBM 5100 Basic Reference Manual

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

(
(
(
{
(
(
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

Advertisement

Table of Contents
loading

Table of Contents