(j3.2006) G editing to a narrow output field
Thomas Henlich
thenlich
Wed Aug 17 02:45:35 EDT 2011
>> "(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.
More information about the J3
mailing list