Need to remove leading zeros for floating point output

Nick Stamatakos ngs@yeb.usno.navy.mil
Fri Oct 19 19:53:00 GMT 2007


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

-- 
Nick Stamatakos
United States Naval Observatory
Earth Orientation Department
3450 Massachusetts Avenue, NW
Washington, DC  20392-5420
(202)-762-1518 (phone)
(202)-762-1563 (fax)
Stamatakos.Nick@usno.navy.mil  (e-mail address)




More information about the Fortran mailing list