This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need to remove leading zeros for floating point output


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

AltStyle によって変換されたページ (->オリジナル) /