Path: news.mathworks.com!newsfeed-00.mathworks.com!news.kjsl.com!news.glorb.com!news2.glorb.com!postnews.google.com!x5g2000prf.googlegroups.com!not-for-mail
From: Nathan <ngreco32@gmail.com>
Newsgroups: comp.lang.fortran,comp.soft-sys.matlab
Subject: Re: Fortran formatted read problem (for matlab MEX file)
Date: Fri, 6 Nov 2009 12:51:54 -0800 (PST)
Organization: http://groups.google.com
Lines: 29
Message-ID: <6fe4953f-7d24-45aa-8bf8-fd86932bf59f@x5g2000prf.googlegroups.com>
References: <7af025a1-6d40-4458-aab0-35bc43418c00@i12g2000prg.googlegroups.com> 
	<hd1sg5$u5k$1@news.eternal-september.org> <d039a82a-256d-411d-a100-2b07c196cb0f@2g2000prl.googlegroups.com> 
	<hd1v00$kib$1@news.eternal-september.org> <dd6e3ab8-fd69-4aba-bfc7-377b2392841d@f1g2000prf.googlegroups.com> 
	<hd21j5$h90$5@naig.caltech.edu>
NNTP-Posting-Host: 198.206.219.33
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Trace: posting.google.com 1257540715 18189 127.0.0.1 (6 Nov 2009 20:51:55 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 6 Nov 2009 20:51:55 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: x5g2000prf.googlegroups.com; posting-host=198.206.219.33; 
	posting-account=_KeVcAoAAAB7j3xn35ujaQ0BoQhuzwJP
User-Agent: G2/1.0
X-HTTP-Via: 1.1 wwwproxy-son-ca-01.ca.sandia.gov:80 (squid/2.5.STABLE14)
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.4) 
	Gecko/20091016 Firefox/3.5.4,gzip(gfe),gzip(gfe)
Xref: news.mathworks.com comp.lang.fortran:213346 comp.soft-sys.matlab:583118


On Nov 6, 12:40 pm, glen herrmannsfeldt <g...@ugcs.caltech.edu> wrote:
> In comp.lang.fortran Nathan <ngrec...@gmail.com> wrote:
> (big snip)
>
> > The only one I might be concerned with is the E format terms regarding
> > numbers such as:
> >     9.7160E+02 and the like.
> > I used the format statement %E15.4  such that from the first white
> > space until the last digit (2), there are 15 characters and 4
> > decimals. Is that correct?
>
> That sounds right.  For input the .4 doesn't do anything unless
> there are no decimal points in the input data.  In the days of
> cards it was not unusual to specify card columns as before and
> after an implied decimal point.  It works fairly well for F format
> (no exponent) input, but I would not recommend it at all with
> an exponent.  
>
> (The music generation program recently discussed reads in a large
> data file with no decimal points.)
>
> -- glen

So reading in 9.7160E+02, I can use F rather than E and disregard
decimals?
I'm a little confused as to what you are trying to tell me.
Why are the decimals unimportant? (or rather, not required)?

-Nathan