MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Reading Fortran Data file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100360] Re: Reading Fortran Data file
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Mon, 1 Jun 2009 07:13:36 -0400 (EDT)
  • References: <gvtmic$gho$1@smc.vnet.net>

Hi,

ImportString["0.448062494397D-01", "List"]

?

Regards
   Jens

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
> 


  • Prev by Date: Re: Image[], Graphics[Raster[]]
  • Next by Date: Re: Accessing Dictionary definitions
  • Previous by thread: Re: Image[], Graphics[Raster[]]
  • Next by thread: Re: Re: Reading Fortran Data file