This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: ES formatting messed up?
On Fri, Mar 10, 2006 at 02:41:54PM -0800, Steve Kargl wrote:
> program a
> real(8) x
> x = 1.2345D-280
> write(*,'(ES14.6)') x
> end program a
>
> troutmask:kargl[257] gfc --version
> GNU Fortran 95 (GCC) 4.1.1 20060302 (prerelease)
> troutmask:kargl[259] gfc -o a a.f90
> troutmask:kargl[260] ./a
> 1.234500-280
>
> Why is the E missing in the output? Shouldn't ES14.6
> give a width of 14 characters: s1.234500E-280 where
> s is the optional sign.
>
Nevermind. It's another quirk of the standard!
--
Steve