Formatted output of IEEE exceptional values

Steve Kargl sgk@troutmask.apl.washington.edu
Tue Jul 19 21:32:00 GMT 2005


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.

-- 
Steve



More information about the Fortran mailing list