Rounded Decimal Output Modification for PDP-8 FORTRAN
8-114

G. R. Hervey, University of Leeds, England

The program loads over the PDP-8 FORTRAN Operating
System (DEC-08-AFA3-PB) and provides output in
conventional decimal form: rounded, aligned, and with
plus sign, leading zeros (other than one, in the case of
fractional numbers), and trailing decimal point replaced
by spaces. The FORTRAN trigonometrical routines are
over-written. The source program must begin with two
statements assigning integer variables representing,
respectively, the numbers of digits required to the right
of the decimal point, and the total number of digits (these
can be reassigned, by program or manually). Output
is called in the normal way, i. e. by TYPE statements
referring to FORMAT statements containing the symbol E.
If output of a number is not possible in the format requested,
the decimal point is shifted to the right in the field; if
formatted output is still impossible, or if zero or negative
total digits were requested, output reverts to "E" format.

Restrictions:
FORTRAN source Ianguage programs must
begin with two special statements defining
format required.

Catalog: November 1969