Need to remove leading zeros for floating point output
Steve Kargl
sgk@troutmask.apl.washington.edu
Fri Oct 19 22:07:00 GMT 2007
On Fri, Oct 19, 2007 at 10:13:24PM +0100, FX Coudert wrote:
> >We could add an option to set that byte to ' ' to suppress it.
> >That would not be available until gfortran version 4.4. It is
> >straightforward to do though.
>
> Totally straightforward, but how much do we need it? How many
> compilers have it? I think neither Sun's nor Intel's do, and I
> haven't found it for Portland either.
>
I'm in agreement with FX. Do we really need this option?
The code I wrote (if I interpreted the original email
correctly) took a minute or so to write. It would seem
to be more portable to write a small function that uses
an internal write.
--
Steve
More information about the Fortran
mailing list