Re: Re: Reading Fortran Data file
- To: mathgroup at smc.vnet.net
- Subject: [mg100409] Re: [mg100360] Re: Reading Fortran Data file
- From: "Scot Martin" <smartin at seas.harvard.edu>
- Date: Tue, 2 Jun 2009 06:50:16 -0400 (EDT)
- Organization: Harvard University
- References: <gvtmic$gho$1@smc.vnet.net> <200906011113.HAA26327@smc.vnet.net>
- Reply-to: <scot_martin at harvard.edu>
CSV format can deal with Fortran numbers. Import["file.dat","CSV"] christopher pike wrote: > Hi, > Have data fortran data file with numbers like 0.447562485933D-01. I > need all the digits, but mathematica seems to only read this as > 0.0448062. > I can read it as a string and get > > "0.448062494397D-01" > > but when I use ToExpression, I get > > -1 + 0.448062 D > > So how can I read in all the digits. > > thanks for any help, chris >
- References:
- Re: Reading Fortran Data file
- From: Jens-Peer Kuska <kuska@informatik.uni-leipzig.de>
- Re: Reading Fortran Data file