ES formatting messed up?
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Mar 10 22:42:00 GMT 2006
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.
--
Steve
More information about the Fortran
mailing list