ABSTRACT

The format statement provides adequate facilities to design both the input and the output. The editing specification, associated with the format statement, during the input operation converts the external form into the internal form. A format statement may be used many times, and in fact, the same format statement may be used for the input as well as for the output. The format statement must have a unique statement number and must contain at least one pair of left and right parentheses. Integer, real and complex variables may be assigned to a binary, octal or hex value through a read statement using b, o or z format, respectively. The rounding mode may be changed during the input/output statement using the edit descriptors ru, rd, rz, rn, rc and rp. They are, respectively, rounding up, down, zero, nearest, compatible and processor dependent. The edit descriptors used along with the read or the write statement override the rounding options, if used, with the open statement.