MathGroup Archive 2009

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

Search the Archive

Re: Reading Fortran Data file


By default, Mathematica only DISPLAYS reals to 6 decimal digits, but the 
remaining digits are there.  To see more displayed, use NumberForm.

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
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • 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
  • Previous by thread: Re: Reading Fortran Data file
  • Next by thread: Re: Accessing Dictionary definitions