[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple number formatting problem



Ben Tupper wrote:
> 
> Hello,
> 
> I been down this street before.  Try using the PARSE_FILENAME() function
> below.   I also added a sort_extension rotuine which worked on the files
> called Untitled.01, Untitled.12, untitled.03

[bunch of stuff snipped...]

Good lord! Maybe it's coz you use a Mac....?? :o)

The Fortran news group has regular questions about this exact same
thing. As David's answer points out, the use of iw.w formatting is oh so
helpful.

paulv

p.s. F95 has a new formatting option, i0, which would print out 1 as
"1", 10 as "10" etc. i.e. the leading blanks removed. Maybe this should
go on a future IDL feature request list....? :o)
-- 
Paul van Delst           Ph:  (301) 763-8000 x7274
CIMSS @ NOAA/NCEP        Fax: (301) 763-8545
Rm.202, 5200 Auth Rd.    Email: pvandelst@ncep.noaa.gov
Camp Springs MD 20746