Re: format with G descriptor



Roman wrote:

(and previously wrote)
>> 2 format(g)
>> s = "1"
>> read(s,2) r
>> write(*,*) r ! output: 1.0000000E-07 !!!!!!!

Thanks for the detailed reply. I make a wrong assumpsion that the
code was ok since I didn't get any errors or warning from the
compiler.

It seems that your compiler has an extension, which supplies
default values for the w and d. For some values of w and d,
the result that you got is correct.

-- glen

.