MathGroup Archive 2009

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

Search the Archive

Re: Re: Reading Fortran Data file


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
> 




  • Prev by Date: Re: Min function returns Min[2.05875,] instead of just 2.05875
  • Next by Date: Re: Min function returns Min[2.05875,] instead of just 2.05875
  • Previous by thread: Re: Reading Fortran Data file
  • Next by thread: Re: Reading Fortran Data file