(j3.2006) DC editing and optional zero

Robert Corbett robert.corbett
Sat Jun 11 03:24:26 EDT 2011

On 06/06/11 02:36, Robert Corbett wrote:
> On 06/06/11 02:19, Thomas Henlich wrote:
>> Hi all,
>> according to the Fortran 2008 standard, is the following intended?
>> print "(dc,g0.1)", 0.5
>> => ,5
> Yes, it is intended.  There was an interpretation issued prohibiting
> the leading zero.
I tracked down the interpretation.  It is F03/000081.

If the logic used to prohibit the leading zero in the interpretation
were applied to the d and e fields of a G edit descriptor, it would
make the G0 and G0.d edit descriptors worthless in the cases when an
exponent is required.

Bob Corbett

More information about the J3 mailing list