Anonymous user
Category:PL/I: Difference between revisions
Normal formatting
No edit summary |
(Normal formatting) |
||
Line 1:
{{stub}}{{language|PL/I}}
PL/I is a general purpose programming language suitable for commercial, scientific, non-scientific, and system programming.
It provides the following data types:
* Floating-point,
* Decimal integer,
* Binary integer,
* Fixed-point decimal (with fractional part),
* Fixed-point binary (that is, with fractional part),
* Character strings of two kinds:
* Bit strings of two kinds:
The float, integer,and fixed-point types can be real or complex.
Multiple precisions are available for binary fixed-point:
* 8 bits,
* 16 bits,
* 32 bits, and
* 64 bits.
Multiple precisions are available for floating point:
* 64 bits, and
* 80 bits.
The language provides for static and dynamic arrays. Of the latter, there are automatic and controlled.
PL/I has four kinds of I/O:
# For simple I/O commands, data-directed input and output requires only the names of the variables. For this form, both the names of the variables and their values are transmitted.
# When precise layouts of input and output data is required, edit-directed I/O is used. A format is specified by the user. The format is flexible, and permits the number of digits, and the number of places after the decimal point to be specified dynamically. The format may also be specified in picture form.
PL/I has built-in checking for such programmer conditions including▼
* floating-point overflow,
* fixed-point overflow,
* division by zero,
* sub-string range checking, and
* string-size checking.
▲ for files held on storage media, record-oriented transmission
▲PL/I has built-in checking for such programmer conditions
▲ including subscript-range checking, floating-point overflow,
▲ and stringsize checking. Any of those may be enabled or disabled
|