FORTRAN 77 Language Reference

Sign Editing (SU, SP, SS, S)

The SU, SP, and S edit descriptors control leading signs for output. For normal output, without any specific sign specifiers, if a value is negative, a minus sign is printed in the first position to the left of the leftmost digit; if the value is positive, printing a plus sign depends on the implementation, but f77 omits the plus sign.

The following sign specifiers are available:

For example, the unsigned specifier can be used with the radix specifier to format a hexadecimal dump, as follows:

2000 	FORMAT( SU, 16R, 8I10.8 ) 

The rules and restrictions for sign control are: