Need to remove leading zeros for floating point output
Jerry DeLisle
jvdelisle@verizon.net
Fri Oct 19 20:21:00 GMT 2007
Nick Stamatakos wrote:
> Hello GNU gfortran community--
> Is there compiler option or other way to remove Leading zeros from
> floating point fortran output? In HP f90 FORTRAN there is an option
> called:
> +io77 Suppresses the generation of the optional leading
> "0" before the decimal point for real numbers
> printed with the E and F edit descriptors.
> Fortran 77 suppressed these leading
> zeros unless
> the NOSTANDARDIO flag was used. Along with
> +gformat77, the +io77 flag provides formatted
> output compatibility with the
> Fortran 77 product.
>
> What is the equivalent compiler or other way to implement this option?
> I can't find it anywhere.
>
> Thanks
> Nick Stamatakos
>
Can you give me a quick code example so I can confirm exactly what you are
talking about?
Jerry
More information about the Fortran
mailing list