[J3] P edit descriptor and format reversion

Van Snyder van.snyder at sbcglobal.net
Tue Aug 18 20:13:50 EDT 2020


I have

  write ( *, '(f11.2,1pg15.7)' ) ( a(i), b(i), i = 1, n )

On the second line, a(2) is printed as if I had 1pf11.2.

I changed it to

  write ( *, '(0pf11.2,1pg15.7)' ) ( a(i), b(i), i = 1, n )

and got the output I expected.

Does the "p" edit descriptor revert to zero when format reversion
occurs, or is it stuck at its previous value?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.j3-fortran.org/pipermail/j3/attachments/20200818/f793080b/attachment.htm>


More information about the J3 mailing list