EasyManuals Logo
Home>IBM>Laptop>5100

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 #103 background imageLoading...
Page #103 background image
(
(
(
Conversion
of
Data
Reference
Values
When
the
data referred
to
is
a character value,
the
characters contained
in
it are
edited into
the
line, replacing characters
in
the format specification including sign
(+,
-),
pound sign, decimal point, and
1111.
If
an edited character value
is
shorter than its format specification, blank padding
occurs on the right.
If
an edited character value
is
longer than its format specifica-
tion, it
is
truncated on
the
right. A character constant containing no characters
(null) causes blank padding on
the
entire format specification.
An arithmetic expression
is
converted according
to
its format specification as follows:
If
the
format specification contains a plus sign and
the
expression value
is
positive,
a plus sign
is
edited into
the
line.
If
the
format specification contains a plus sign and
the
expression value
is
neg-
ative, a minus sign
is
edited into the line.
If
the
format specification contains a minus sign and
the
expression value
is
positive, a blank
is
edited into
the
line.
If
the
format specification contains a minus sign and the expression value
is
negative, a minus sign
is
edited into
the
line.
If
the
format specification does
not
contain a
sign
and
the
expression value
is
negative, a minus sign and
the
negative number
will
be printed, provided
that
the
format specification
is
long enough
to
contain both
the
number and
the
sign.
If
the
format specification
is
not
long enough, asterisks are edited into the line
instead
of
the
negative number. Asterisks are also edited into
the
line for posi-
tive values
that
are
too
large.
The expression value
is
converted according
to
the type
of
its format specification
as
follows:
'-Format: The value
of
the
expression
is
converted
to
an integer, rounding
any fraction.
F-Format: The value
of
the
expression
is
converted
to
a floating-point num-
ber, either rounding
the
value
or
extending it with zeros and adjusting the
exponent according
to
the
format specification.
£-Format: The value
of
the
expression
is
converted
to
a floating-point num-
ber, rounding
the
value
or
extending it with zeros according
to
the
format
specification.
If
the
length
of
the
integer portion
of
the
arithmetic expression value
is
less
than
or
equal
to
the
length
of
the
integer portion
of
the
format specification,
the
expres-
sion value
is
edited, right-justified, and padded with blanks into
the
line.
If
the
length
of
the
integer portion
of
the
format specification
is
less than the length
of
the
integer portion
of
the
expression value, asterisks are edited into the line instead
of
the
expression value.
99

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
BrandIBM
Model5100
CategoryLaptop
LanguageEnglish

Related product manuals