Re: format with G descriptor
- From: glen herrmannsfeldt <gah@xxxxxxxxxxxxxxxx>
- Date: Fri, 30 May 2008 13:36:23 -0800
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
.
- References:
- format with G descriptor
- From: Roman
- Re: format with G descriptor
- From: Kurt Kallblad
- Re: format with G descriptor
- From: Roman
- format with G descriptor
- Prev by Date: Re: format with G descriptor
- Next by Date: optional assumed-shape array
- Previous by thread: Re: format with G descriptor
- Next by thread: optional assumed-shape array
- Index(es):