MathGroup Archive 2009

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

Search the Archive

Re: Reading Fortran Data file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100370] Re: [mg100301] Reading Fortran Data file
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Tue, 2 Jun 2009 06:42:34 -0400 (EDT)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <200905311036.GAA16976@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

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