IBM 5100 Basic Reference Manual page 105

Hide thumbs Also See for 5100:
Table of Contents

Advertisement

(
The following rules define the end of a format specification that has been started:
1.
A
#
character is encountered and:
a. The following character is not a
#
character, or
b. The following character is not a decimal point, or
c. The following character is a decimal point and a decimal point has already
(
-"
been encountered, or
d. The following four consecutive characters are not
I
characters (I
I I
I).
2.
A decimal point is encountered and:
a. The following character is not a
#
character, or
b. The following character is another decimal point, or
f~
c. The following four consecutive characters are not
I
characters
(1111).
Some examples of expressions and the way they are displayed or printed under
various format specifications are as follows:
Format
Expression
Displayed or
Specification
Value
Printed Format
#####
'APPLES'
APPLE
####
-123
-123
###
123
123
if
###
12
kl12
###
1.23
kI kl1
##.##
123
*****
##.##
1.23
kl1.23
##.##
1.23456
kl1.23
##.##
.123
kl16.12
##.##
12.345
12.35
{
###1111
123
123E+OO
###1111
12.3
123E-01
###1111
.1234
123E-03
(
##.##1111
123
12.30E+01
##.##1111
1.23
12.30E-01
##.##1111
.1234
12.34E-02
<"
##.##1111
1234
12.34E+02
101

Advertisement

Table of Contents
loading

Table of Contents