Formatted output of IEEE exceptional values
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Jul 19 22:11:00 GMT 2005
On Tue, Jul 19, 2005 at 11:40:22PM +0200, Harald Anlauf wrote:
> >>>>> "Steve" == Steve Kargl <sgk@troutmask.apl.washington.edu> writes:
>
> Steve> On Tue, Jul 19, 2005 at 10:43:49PM +0200, Harald Anlauf wrote:
>>>
>>> Please see section 10.6.1.2.1 of the F2003 standard on width-0
>>> formatting:
>>>
>>> -------------8<---------------> cut here <--------------8<--------------
>>> The Fw.d edit descriptor indicates that the field occupies w
>>> positions, the fractional part of which consists of d digits. When w
>>> is zero, the processor selects the field width. [...]
>>> -------------8<---------------> cut here <--------------8<--------------
>>>
>>> Be sure that the last sentence does not mean that the width should be
>>> really zero :)
>>>
>
>> If you look at the Fortran 95 standard, you find
>> 10.5.1 Numeric editing
>> (6) On output, with I, B, O, Z, and F editing, the specified value of the
>> field width w may be zero. In such cases, the processor selects the
>> smallest positive actual field width that does not result in a field
>> filled with asterisks. The specified value of w shall not be zero
>> on input.
>
> So what is your point?
(1) I've shown you the relevant text from the Fortran 95 standard
document, which gfortran is attempting to implement.
(2) You wrote "Be sure that the last sentence does not mean that
the width should be really zero :)"
The text I quote from F95 standard clearly shows that the
width can't be zero. There is no guessing. Yes, I see your
smiley.
(3) Look at 10.6.1(6) in F2003.
--
Steve
More information about the Fortran
mailing list