(j3.2006) G editing to a narrow output field

Robert Corbett robert.corbett
Wed Aug 17 02:59:49 EDT 2011


On 08/16/11 23:45, Thomas Henlich wrote:
>>> "(5) On output, if an exponent exceeds its specified or implied width
>>> using the E, EN, ES, D, or G edit descriptor, or the number of characters
>>> produced exceeds the field width, the processor shall fill the entire field
>>> of width w with asterisks. However, the processor shall not produce
>>> asterisks if the field width is not exceeded when optional characters are
>>> omitted."
>
> I think both interpretations are valid. It depends on interpretation
> whether "the number of characters produced exceeds the field width"
> includes the F conversion of the G edit descriptor. It is at least
> plausible that exactly this is meant, because the two different terms
> "the field width" and "the entire field of width w" are used.
>
> But the text of the standard should be made more clear on this matter.
The standard as written seems to allow only the interpretation
that has two asterisks being written.  The only field width that
is exceeded is the field width supplied with the F edit descriptor.
Given that the other interpretation appears to be used by the
majority of existing implementations, I am forced to concede that
some people find that interpretation plausible, but I do not
believe it is supported by a strict reading of the Fortran standard.

Bob Corbett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://j3-fortran.org/pipermail/j3/attachments/20110816/3fe6b4c9/attachment.html>



More information about the J3 mailing list