[PATCH, final] Formatted output of IEEE exceptional values
Steve Kargl
sgk@troutmask.apl.washington.edu
Sun Jul 24 01:10:00 GMT 2005
On Fri, Jul 22, 2005 at 11:27:26PM -0700, Jerry DeLisle wrote:
> The attached patch and test case reflect the additional case of a field
> width specified as zero.
>
> F2003 says: "When w is zero, the processor selects the field width".
>
> I have selected that width to be 4 in the case of exceptional values to
> output -Inf or +Inf
>
> F2003 also says: "If w is less than 3, the field is filled with
> asterisks; otherwise; if w is less than 8, 'Inf' is produced".
>
> The negative sign is not optional, so I have interpreted the case of w=3
> to be -Inf which exceeds the field width and so asterisks are produced.
>
This is ok. Although I would recommend the addition of
comment on the rationale for the choices for w = 0, 3, and 8.
--
Steve
More information about the Fortran
mailing list